Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #read #json #file #python
ADD COMMENT
Topic
Name
6+9 =