Created
April 13, 2015 14:17
-
-
Save nataliepo/18832ae51019ed35a741 to your computer and use it in GitHub Desktop.
Create dictionary from file
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
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"allSources" ofType:@"json"]; | |
NSData *data = [NSData dataWithContentsOfFile:filePath]; | |
NSError *error = nil; | |
NSDictionary *result = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment