Exemplos
import json
with open('data.json') as json_file:
parsed_data = json.load(json_file)
json_string = '{"key": "value", "array": [1, 2, 3]}'
parsed_data = json.loads(json_string)
data = {
"name": "John",
"age": 30,
"city": "New York"
}
with open("data.json", "w") as json_file:
json.dump(data, json_file)
json_string = json.dumps(data)