A simple, quick'n'dirty example:
NSString *jsonPath = [[NSBundle mainBundle] pathForResource:@"foobar" ofType:@"json"]; NSData *data = [NSData dataWithContentsOfFile:jsonPath]; NSError *error = nil; id json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; NSLog(@"JSON: %@", json);
source share