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