reading json file in python 3 code example
Example 1: read json file python
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
print(data)
flx = json.dumps(data, ensure_ascii=False, indent=4)
print(flx)
Example 2: load json
import json
with open('data.txt') as json_file:
data = json.load(json_file)