So it feels more like a machine format, but in that case why not use a more efficient one, like a binary format?
So it feels more like a machine format, but in that case why not use a more efficient one, like a binary format?
> TJSON documents are amenable to "content-aware hashing" where different encodings of the same data (including both TJSON and binary formats like Protocol Buffers, MessagePack, BSON, etc) can share the same content hash and therefore the same cryptographic signature.
TJSON is designed to facilitate documents that retain the same content hash when transcoded to/from binary formats.
Also, canonicalization is a bit of a mess. There are several incompatible canonicalization schemes for JSON, and even within a single one of those people have a difficult time implementing them correctly. See e.g. https://github.com/theupdateframework/tuf/issues/362
Also, I'm collecting a list of all subsets of JSON here if anyone knows of more: https://housejeffries.com/page/7
EDIT: Wow there's a lot of criticism in this thread. For the record I think TJSON is great.