how to save file in json data code example
Example: save json to file
import json
data = {}
with open('data.txt', 'w') as outfile:
json.dump(data, outfile)
import json
data = {}
with open('data.txt', 'w') as outfile:
json.dump(data, outfile)