Skip to main content

Function: canonicalJson()

canonicalJson(value): string

Serialise a JSON value canonically. Keys whose value is undefined are omitted (as JSON.stringify does); anything JSON cannot represent throws.

Parameters​

value​

unknown

Returns​

string