Poq.SDK.Node

Home > @poq/sdk-sfcc > Configuration > isJsonMime

Configuration.isJsonMime() method

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;

Parameters

Parameter Type Description
mime string MIME (Multipurpose Internet Mail Extensions)

Returns:

boolean

True if the given MIME is JSON, false otherwise.