Skip to content

Instantly share code, notes, and snippets.

@gabriel
Created July 1, 2009 08:46
Show Gist options
  • Save gabriel/138682 to your computer and use it in GitHub Desktop.
Save gabriel/138682 to your computer and use it in GitHub Desktop.
NSData *data = [NSData dataWithContentsOfFile:@"example.json"];
NSError *error = nil;
YAJLDocument *document = [[YAJLDocument alloc] initWithData:data parserOptions:0 error:&error];
// Access root element at document.root
NSLog(@"Root: %@", document.root);
[document release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment