Created
August 20, 2011 17:38
-
-
Save perlmunger/1159391 to your computer and use it in GitHub Desktop.
NSJSONSerialization Example Code
This file contains hidden or 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
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