Python; urllib error: AttributeError: 'bytes' object has no attribute 'read'
Use json.loads
not json.load
.
(load
loads from a file-like object, loads
from a string. So you could just as well omit the .read()
call instead.)
Try this:
jsonResponse = json.loads(response.decode('utf-8'))