Answers for "python print json file line by line"

66

python read json file

import json

with open('path_to_file/person.json') as f:
  data = json.load(f)

print(data)
Posted by: Guest on April-08-2020
3

python format json file

python3 -m json.tool unformatted.json > formatted.json
Posted by: Guest on June-09-2020

Code answers related to "python print json file line by line"

Code answers related to "Javascript"

Browse Popular Code Answers by Language