Home > @poq/sdk-sfcc > Configuration > isJsonMime
Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json
Signature:
isJsonMime(mime: string): boolean;
Parameter | Type | Description |
---|---|---|
mime | string | MIME (Multipurpose Internet Mail Extensions) |
Returns:
boolean
True if the given MIME is JSON, false otherwise.