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];
网友评论