.json转.plist,两行代码搞定,不需要某软件转

NSString *path = @"/Users/crf/Desktop/bank.json”;//此处贴地址

NSArray *array = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:path] options:NSJSONReadingMutableLeaves error:nil];

[array writeToFile:@"/Users/crf/Desktop/bank.plist" atomically:YES];

你可能感兴趣的:(.json转.plist,两行代码搞定,不需要某软件转)