json 转出plist 方法

NSString *path = @"/Users/bihu_niuniu/Desktop/CityData.json";

NSArray *array = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:path] options:NSJSONReadingMutableLeaves error:nil];
[array writeToFile:@"/Users/bihu_niuniu/Desktop/CityData.plist" atomically:YES];

你可能感兴趣的:(json 转出plist 方法)