python ler o ficheiro json
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
print(data)
abrir o ficheiro JSON python
import json
with open('data.txt') as json_file:
data = json.load(json_file)
ler o ficheiro json
with open('file.txt', 'r') as f:
data = f.read()