As an alternative to Eloim’s answer, Tornado provides tornado.escape for “Escaping/unescaping HTML, JSON, URLs, and others”. Using it should give you exactly what you want:
data = tornado.escape.json_decode(self.request.body)
As an alternative to Eloim’s answer, Tornado provides tornado.escape for “Escaping/unescaping HTML, JSON, URLs, and others”. Using it should give you exactly what you want:
data = tornado.escape.json_decode(self.request.body)