parameters: (self)
return_statement: return (
              mt == "application/json"
              or mt.startswith("application/")
              and mt.endswith("+json")
          )
docstring: Check if the mimetype indicates JSON data, either
          :mimetype:`application/json` or :mimetype:`application/*+json`.
docstring_summary: Check if the mimetype indicates JSON data, either
          :mimetype:`application/json` or :mimetype:`application/*+json`.
docstring_tokens: Check if the mimetype indicates JSON data either : mimetype : application / json or : mimetype : application / * + json .
function: def is_json(self):
          """Check if the mimetype indicates JSON data, either
          :mimetype:`application/json` or :mimetype:`application/*+json`.
          """
          mt = self.mimetype
          return (
              mt == "application/json"
              or mt.startswith("application/")
              and mt.endswith("+json")
          )
function_tokens: def is_json ( self ) : mt = self . mimetype return ( mt == "application/json" or mt . startswith ( "application/" ) and mt . endswith ( "+json" ) )