Du kannst ein Dictionary als JSON Objekt speichern, indem du das json Modul verwendest.
import json
data_dict = {
    "name": "John",
    "age": 30,
    "city": "New York"
}
# Dictionary als JSON speichern
with open('data.json', 'w') as json_file:
    json.dump(data_dict, json_file)