code: def is_json(self):
          
          return (self.content_type.startswith('application/json') or
                  re.match(r'application/vnd.go.cd.v(\d+)\+json', self.content_type))
docs: Returns:
            bool: True if `content_type` is `application/json`