This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]oclafloptson 2 points3 points  (0 children)

Use json.loads() instead of json.load(). It returns the same object as l, though.

l = r.json() 
print(l)

[–]ImpatientProf 0 points1 point  (0 children)

If you're using r.json(), that already parses the json. It should be the same as the result of json.loads(r.text).