SyntaxFix
Write A Post
Hire A Developer
Questions
Python’s wonderful standard library to the rescue…
import codecs reader = codecs.getreader("utf-8") obj = json.load(reader(response))
Works with both py2 and py3.
Docs: Python 2, Python3