I\'ve been trying to update a small Python library called libpynexmo to work with Python 3.
I\'ve been stuck on this function:
def send_request_json(
Since you are getting a HTTPResponse, you can use Tornado.escape and its json_decode() to convert the JSON strign into a dictionary:
json_decode()
from tornado import escape body = escape.json_decode(body)
From the manual:
tornado.escape.json_decode(value) Returns Python objects for the given JSON string.
tornado.escape.json_decode(value)
Returns Python objects for the given JSON string.