Python - JSON

Leer fichero JSON

import json

with open('fichero.json') as f:
    datos = json.load(f)

Guardar fichero JSON

import json

datos = { ... }
with open('fichero.json', 'w') as f: 
    json.dump(datos, f)
    #json.dump(datos, f, indent=4) # Guardar identado