JSON TO NSDictionary Mac & iOS

NSString * jsonPath=[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Contents.json"];
 NSString * jsonStr=[[NSString alloc] initWithData:[NSData dataWithContentsOfFile:jsonPath] encoding:NSUTF8StringEncoding];
NSLog(@"%@",[JsonToDictionary diccionaryFromJsonString:jsonStr]);

你可能感兴趣的:(JSON TO NSDictionary Mac & iOS)