Salvar o JSON para arquivar
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)
{
"name": "Flavio",
"age": 35
}