code: def json(self, data):
          
          if data is not None:
              self._body = json.dumps(data)
              self.add_header('Content-Type', 'application/json')
docs: Set the POST/PUT body content in JSON format for this request.