📜  读取json文件python代码示例

📅  最后修改于: 2022-03-11 14:45:10.477000             🧑  作者: Mango

代码示例6
import json

with open('path_to_file/person.json') as f:
  data = json.load(f)
print(data)

flx = json.dumps(data, ensure_ascii=False, indent=4)
print(flx)