
Untitled
By: a guest on
Aug 11th, 2012 | syntax:
None | size: 0.74 KB | hits: 10 | expires: Never
Parsing JSON: brackets in response
NSString *response = [request responseString];
responseDict = [response JSONValue];
videoTitleArray = [responseDict valueForKeyPath:@"feed.entry.title.$t"];
videoAuthorArray = [responseDict valueForKeyPath:@"feed.entry.author.name.$t"];
NSLog(@"%@", videoAuthorArray);
(
author 1
),
(
author 2
),
(
author 3
),
(
author 4
),
"author":[{"name":{"$t":"mls"},"uri":{"$t":"http://gdata.youtube.com/feeds/api/users/mls"},"yt$userId":{"$t":"SZbXT5TLLW_i-5W8FZpFsg"}}]
"author":[
{
"name": {
"$t":"mls"
},
"uri": {
"$t":"http://gdata.youtube.com/feeds/api/users/mls"
},
"yt$userId":{
"$t":"SZbXT5TLLW_i-5W8FZpFsg"
}
}
],