python json api code example
Example 1: api in python
import requests
import json
r = requests.get("URL")
j=r.json()
print(j)
Example 2: json load
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
import requests
import json
r = requests.get("URL")
j=r.json()
print(j)
import json
with open('path_to_file/person.json') as f:
data = json.load(f)