json.decoder python code example
Example 1: load json
import json
with open('data.txt') as json_file:
data = json.load(json_file)
Example 2: python json dump
import json
with open("data_file.json", "w") as write_file:
json.dump(data, write_file)