I have a JSON POST Request and it is returning the below description to me from this..
NSDictionary *dicData = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error];
This is the NSLog...
I am trying to populate an additional NSMutableArray with just the thumbnail. But when I print out all keys the only key I get is 'mediaList'
Aren't 'full size and thumbnail other Keys?
2016-10-31 13:56:16.551008 MuzikLive MuzikLive[1444:794721] The dicData has this in it {
mediaList = (
{
fullsize = "/getMedia?file=/LivePic-19700101_014950899.jpg";
thumbnail = "/getMedia?file=/thumbs/LivePic-19700101_014950899.jpg";
},
{
fullsize = "/getMedia?file=/LivePic-19700101_014952658.jpg";
thumbnail = "/getMedia?file=/thumbs/LivePic-19700101_014952658.jpg";
},
{
fullsize = "/getMedia?file=/LivePic-19700101_014954431.jpg";
thumbnail = "/getMedia?file=/thumbs/LivePic-19700101_014954431.jpg";
},
{
fullsize = "/getMedia?file=/LiveVid-19700101_025111.mp4";
thumbnail = "/getMedia?file=/thumbs/LiveVid-19700101_025111.jpg";
}
);
}
dictDatahas one key-value (mediaListis a key and its value is anarray). You have to iterate thatarrayto get the values ofthumbnail.