#NEWLINE# def render_to_json_response( self , context , **response_kwargs ) : #NEWLINE# #INDENT# "\n        Returns a JSON response, transforming 'context' to make the payload.\n        " #NEWLINE# response = HttpResponse ( self . convert_context_to_json ( context ) , content_type = 'application/json' , ** response_kwargs ) #NEWLINE# for ( key , value ) in self . HEADERS . items ( ) : #NEWLINE# #INDENT# response [ key ] = value #NEWLINE# #UNINDENT# return response