@oona/vlo / index / canonicalJson
Function: canonicalJson()
canonicalJson(
value):string
Defined in: sdk/ts/sdk/src/core/hash.ts:22
Deterministic JSON: object keys sorted recursively, arrays in order, no whitespace. Throws on anything JSON cannot represent losslessly (undefined, NaN, Infinity, bigint, function, symbol) rather than silently dropping it, because a dropped field would make two different schemas hash the same.
Parameters
value
unknown
Returns
string