Since you’re using requests
, you should use the response’s json
method.
import requests
response = requests.get(...)
data = response.json()
It autodetects which decoder to use.
Since you’re using requests
, you should use the response’s json
method.
import requests
response = requests.get(...)
data = response.json()
It autodetects which decoder to use.