Skip to content

Instantly share code, notes, and snippets.

@jacksonfdam
Created May 28, 2012 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacksonfdam/2819462 to your computer and use it in GitHub Desktop.
Save jacksonfdam/2819462 to your computer and use it in GitHub Desktop.
Parsing JSON
if(!error) {
NSData *jsonData = [json dataUsingEncoding:NSASCIIStringEncoding];
NSDictionary *jsonDict = [NSJSONSerialization JSONObjectWithData:jsonData
options:kNilOptions
error:&error];
NSLog(@"JSON: %@", jsonDict);
}
NSString *promo_url = [jsonDict objectForKey:@"promo_url"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment