Answers for "get the value in a json file python"

4

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)
Posted by: Guest on November-06-2020

Code answers related to "get the value in a json file python"

Python Answers by Framework

Browse Popular Code Answers by Language