Created
July 1, 2009 08:46
-
-
Save gabriel/138682 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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