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

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

代码示例6
# Python program to read JSON
# from a file
  
  
import json
  
# Opening JSON file
with open('sample.json', 'r') as openfile:
  
    # Reading from json file
    json_object = json.load(openfile)
  
print(json_object)
print(type(json_object))