Answers for "read online json in 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
0

import json file python online

import urllib.request, json 
with urllib.request.urlopen("http://maps.googleapis.com/maps/api/geocode/json?address=google") as url:
    data = json.loads(url.read().decode())
    print(data)
Posted by: Guest on August-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language