I hope to decode the JSON data below:
{ \"content\": [ { \"1\":\"a\", \"2\":\"b\", \"3\":\"c\",
You can do the following:
NSData *data = ...; //JSON data NSError *jsonError = nil; [NSJSONSerialization JSONObjectWithData:data options:0 error:&jsonError];
You will get back an NSDictionary containing an NSArray containing a single NSDictionary containing five NSString objects.
NSDictionary
NSArray
NSString