I’ve tried using
simplejson.load()andjson.load()but it gave me an error saying'str' object has no attribute 'read'
To load from a string, use json.loads() (note the ‘s’).
More efficiently, skip the step of reading the response into a string, and just pass the response to json.load().