def is_json(self) -> bool:
        """Returns True if the content_type is json like."""
        content_type = self.mimetype
        if content_type == 'application/json' or (
                content_type.startswith('application/') and content_type.endswith('+json')
        ):
            return True
        else:
            return False
def is_json ( self ) -> bool : content_type = self . mimetype if content_type == 'application/json' or ( content_type . startswith ( 'application/' ) and content_type . endswith ( '+json' ) ) : return True else : return False
Returns True if the content_type is json like.