Python Json
# read
import json
json.load(open('data.json'))
json.load(STRING)
# write
import json
with open('data.json', 'w') as f:
json.dump(data, open('data.json', 'w'))
# single line
import json
json.dump(data, open('data.json', 'w'))
Read JSON file using Python - GeeksforGeeks python - How do I write JSON data to a file? - Stack Overflow