JSON Dump para archivar
import json
data = {"key": "value"}
with open('data.json', 'w') as jsonfile:
json.dump(data, jsonfile)
Attractive Ape
import json
data = {"key": "value"}
with open('data.json', 'w') as jsonfile:
json.dump(data, jsonfile)
import json
with open(filename, 'r') as f:
data = json.load(f) # with 4 spaces insted of tab