Answers for "read json from request python"

15

python read json

import json

with open('path_to_file/person.json') as f:
  data = json.load(f)
Posted by: Guest on March-24-2021
1

how to read a json resposnse from a link in python

import urllib, json

url = "put url here"
response = urllib.request.urlopen(url)
data = json.loads(response.read())
print (data)
Posted by: Guest on May-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language