2012-05-14 17 views

Respuesta

13

simple, ejemplo quick'n'dirty:

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); 
Cuestiones relacionadas