Python membaca file json
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
print(data)
MzanziLegend
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
print(data)
import json
data = {}
with open('data.txt', 'w') as outfile:
json.dump(data, outfile)
import json
with open('data.json') as f:
data = json.load(f)