I am reading some json output… just some integers. The first NSLog outputs things perfectly. In this case there are 3 elements. I don’t understand how to access a specific element I guess.
NSMutableArray *json = (NSMutableArray*)[NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
NSLog(@"json: %@ \n",json);
int count = (int)[json objectAtIndex:0];
int count1 = (int)[json objectAtIndex:1];
int count2 = (int)[json objectAtIndex:2];
NSLog(@"count %i %i %i\n",count,count1,count2);
It’s likely that those are NSNumbers. Try this: