** I felt that there was a demand to tell me the minimum. Well I am **
First read
import json
f = open("./file_name.json", 'r')
#Here is important! !!
json_data = json.load(f) #Read in JSON format
Then export
import json
data = {"a":"alpha"}
fw = open('./file_name.json','w')
# json.Write to a file with the dump function
json.dump(data ,fw,indent=4)
Recommended Posts