import json with open("exam_result.json", "r", encoding="utf-8") as file_obj: data = json.load(file_obj) print(f"名前 {data["name"]}") print(f"点数 {data["scores"]}") print(f"平均 {data["average"]}") # プログラム13-7(JSONファイルをデコード)