import json
jsonデータの書き出し
print(json.dumps(j))
jsonデータの読み込み
print(json.loads(a))
jsonファイルの書き出し
with open('test.json', 'w') as f:
json.dump(j, f)
jsonファイルの読み込み
with open('test.json', 'r') as f:
print(json.load(f))
PythonでJSON
プログラミング
