def json(self, data):
        callback = self.request.get('callback', default_value=False)

        data = json.dumps(data)

        if callback:
            self.response.headers['Content-Type'] = "application/javascript"
            data = callback + "(" + data + ");"
        else:
            self.response.headers['Content-Type'] = "application/json"

        self.response.out.write(data)
Renders the given data as json.
dataset/ETHPy150Open twilio/stashboard/stashboard/handlers/restful.py/Controller.json