📜  python读取json文件-Python代码示例

📅  最后修改于: 2022-03-11 14:46:53.296000             🧑  作者: 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)