code: def send_json(self, obj, status=200):
          
          self.headers['Content-Type'] = 'application/json'
          self.status_code = status
          message = json.dumps(obj)
          self.send_text(message)
docs: Sends a stringified JSON response to client. Automatically sets the
          content-type header to application/json.
  
          Parameters
          ----------
          obj : mixed
              Any object which will be serialized by the json.dumps module
              function
          status : int, optional
              The HTTP status code, defaults to 200 (OK)