Canonical JSON
npm install @substrate-system/json-canonjson-canon








Serialize JSON into a canonical format — safe for generating a consistent
cryptographic hash or signature.
Follows RFC8785: JSON Canonicalization Scheme (JCS)
Contents
- Fork
- _Featuring_
- References
This is a fork of
ahdinosaur/json-canon.
The JSON Canonicalization Scheme concept in a nutshell:
* Serialization of primitive JSON data types using methods compatible with
ECMAScript's JSON.stringify()
Lexicographic sorting of JSON Object properties in a recursive* process
* JSON Array data is also subject to canonicalization,
but element order remains untouched
- cyberphone/ietf-json-canon
- cyberphone/json-canonicalization