@agorio/sdk • Docs
Function: canonicalJson()
canonicalJson(
value):string
Deterministic canonical JSON: recursively sort object keys, omit undefined,
and emit no insignificant whitespace. Arrays preserve order. Signer and
verifier both serialize the mandate this way so the signed byte sequence is
independent of property insertion order.
Parameters
• value: unknown
Returns
string
Defined in
src/client/ap2-client.ts:220