SyntaxFix
Write A Post
Hire A Developer
Questions
The problem is that for json.load you should pass a file like object with a read function defined. So either you use json.load(response) or json.loads(response.read()).
json.load
read
json.load(response)
json.loads(response.read())