(self, data)
return response
Returns a HttpResponse object of JSON serialized data.

        **Args:**

        * *data:* Object to be JSON serialized and returned.
Returns a HttpResponse object of JSON serialized data.
Returns a HttpResponse object of JSON serialized data .
def response(self, data):
        """Returns a HttpResponse object of JSON serialized data.

        **Args:**

        * *data:* Object to be JSON serialized and returned.
        """
        json_data = json.dumps(data)
        if self.callback is not None:
            json_data = "%s(%s);" % (self.callback, json_data)
        response = HttpResponse(
            content=json_data,
            content_type='application/json')
        return response
def response ( self , data ) : json_data = json . dumps ( data ) if self . callback is not None : json_data = "%s(%s);" % ( self . callback , json_data ) response = HttpResponse ( content = json_data , content_type = 'application/json' ) return response