Values are written down in canonical form, comparing
their syntax for equivalence gives the same result as comparing them
semantically according to the equivalence defined in the
That is, canonical forms are equal if and only if the encoded
This document specifies canonical form for the Preserves compact binary syntax.
Annotations. Annotations MUST NOT be present.
The elements of a
Set MUST be serialized sorted in ascending order
by comparing their canonical encoded binary representations.
The key-value pairs in a
Dictionary MUST be serialized sorted in
ascending order by comparing the canonical encoded binary
representations of their keys.2
Other kinds of
There are no special canonicalization restrictions on
constraints given for these
Values in the specification
suffice to ensure canonicity.