The json module converts Python structures to JSON and back: json.loads and json.load read text or a file, json.dumps and json.dump write. Dictionaries, lists, strings, numbers, booleans and None have a JSON equivalent. indent and ensure_ascii=False improve readability.
Example
data = json.loads('{"nom": "Léa"}')
json.dumps(data, ensure_ascii=False, indent=2)