code: def render_json_response(self, context, status=200):
          
          json_context = json.dumps(context, cls=self.json_encoder_class)
  
          return HttpResponse(json_context,
                              content_type=self.get_content_type(),
                              status=status)
docs: Serialize the context dictionary as JSON and return it
          as a HTTP Repsonse object. This method only allows
          serialization of simple objects (i.e. no model instances)