Skip to main content

Function: stableStringify()

stableStringify(value): string

Pretty-print a JSON value with keys in canonical order and two-space indentation, ending with a newline. Used for fixtures and files written for people to read; hashing always uses canonicalJson.

Parameters​

value​

unknown

Returns​

string