Spaces:
Runtime error
Runtime error
File size: 217 Bytes
e664a97 |
1 2 3 4 5 6 7 8 9 10 11 |
import json
def json_dump(file_name,data):
with open(file_name,'w') as fw:
json.dump(data,fw)
fw.close()
def json_load(file_name):
with open(file_name,'r') as fr:
data=json.load(fr)
fr.close()
return data |