def render_json(self, value): """ Render the object as json response. """ self.set_header('Content-Type', 'application/json') self.write(to_json(value))
def render_json(self, value): """ Render the object as json response. """ self.set_header('Content-Type', 'application/json') self.write(to_json(value))