Easy JSON Parsing for the iPhone/iPad
So you have access to a JSON stream through an RSS feed or a rest API and you want to use the information in objective-c.
Easy. Just include the ‘json-framework’ files in your application, #import “JSON.h”, and then do:
SBJSON *jsonParser = [[SBJSON alloc] init];
NSDictionary *dictResult = [jsonParser objectWithString:theString error:nil];
You can then move through the items in the dictionary object and use them in your app. Cool.
2 years ago