easyidp.jsonfile.write_json#
- easyidp.jsonfile.write_json(data_dict, json_path, indent=0, encoding='utf-8')#
Save dict to the same structure json file, a function wrapper for
dict2json()
- 参数:
data_dict (dict) – the dict object want to save as json file
json_path (str) – the path including json file name to save the json file e.g.
D:/xxx/xxxx/save.json
indent (int | None) – whether save “readable” json with indent, default 0 without indent
encoding (str) – the encoding type of output file