Answers for "read from file json"

89

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
0

python read json file

import json

with open('json_data.json') as json_file:
    data = json.load(json_file)
    print(data)
Posted by: Guest on May-06-2022

Python Answers by Framework

Browse Popular Code Answers by Language