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
时间: 2024-12-28 12:25:19