JSON Canonicalization Scheme
RFC 8785, “JSON Canonicalization Scheme”, is an Informational document published in June 2020 by A. Rundgren, B. Jordan, S. Erdtman. The canonical text is published by the RFC Editor.
Abstract
Cryptographic operations like hashing and signing need the data to be expressed in an invariant format so that the operations are reliably repeatable. One way to address this is to create a canonical representation of the data. Canonicalization also permits data to be exchanged in its original form on the "wire" while cryptographic operations performed on the canonicalized counterpart of the data in the producer and consumer endpoints generate consistent results.
This document describes the JSON Canonicalization Scheme (JCS). This specification defines how to create a canonical representation of JSON data by building on the strict serialization methods for JSON primitives defined by ECMAScript, constraining JSON data to the Internet JSON (I-JSON) subset, and by using deterministic property sorting.
What “Informational” means
Published for the general information of the community. It does not define an IETF standard and carries no standards-track status.
The canonical text of RFC 8785 is hosted at rfc-editor.org. Available in HTML,TXT,PDF,XML.
- RFC 8784 Mixing Preshared Keys in the Internet Key Exchange Protocol Version 2 for Post-quantum Security
- RFC 8786 Updated Rules for Processing Stateful PCE Request Parameters Flags
- RFC 8783 Distributed Denial-of-Service Open Threat Signaling Data Channel Specification
- RFC 8787 Location Source Parameter for the SIP Geolocation Header Field
- RFC 8782 Distributed Denial-of-Service Open Threat Signaling Signal Channel Specification
- RFC 8788 Eligibility for the 2020-2021 Nominating Committee
- RFC 8781 Discovering PREF64 in Router Advertisements
- RFC 8789 IETF Stream Documents Require IETF Rough Consensus