Add a sentence about what canoncial JSON is

Signed-off-by: Stuart Mumford <stuart@cadair.com>
This commit is contained in:
Stuart Mumford 2023-03-15 19:38:52 +00:00
parent a481d6aafb
commit 139f67ecfc
No known key found for this signature in database
GPG key ID: 60BC5C03E6276769

View file

@ -83,7 +83,11 @@ object.
### Canonical JSON
We define the canonical JSON encoding for a value to be the shortest
To ensure that all implementations use the same JSON encoding we define
"Canonical JSON". This should not be confused with other uses of
"Canonical JSON" outside of the specification.
We define this encoding for a value to be the shortest
UTF-8 JSON encoding with dictionary keys lexicographically sorted by
Unicode codepoint. Numbers in the JSON must be integers in the range
`[-(2**53)+1, (2**53)-1]`.