kinetex - v1.0.0-rc.1
    Preparing search index...

    Function isJSON

    • Check whether a Content-Type value represents a JSON response.

      Parameters

      • contentType: string | null

        The Content-Type header value (or null).

      Returns boolean

      True if the media type is application/json or a +json subtype.