Skip to content

Instantly share code, notes, and snippets.

@perlmunger
Created August 20, 2011 17:38
Show Gist options
  • Save perlmunger/1159391 to your computer and use it in GitHub Desktop.
Save perlmunger/1159391 to your computer and use it in GitHub Desktop.
NSJSONSerialization Example Code
NSError *error = nil;
NSData *json = [NSData dataWithContentsOfFile:path];
id object = [NSJSONSerialization JSONObjectWithData:json options:NSJSONReadingMutableContainers error:&error];
// object is a dictionary or an array you can now use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment