Re:JSON with Commas and Comments
by fanf2 on Tuesday February 23, 2021 @10:08AM
(#26238108)
Why would someone choose this rather than msgpack or CBOR or protobuf or any of the other existing things in that space?
[ Parent
| on HN ]
Because there isn't anything else in this space that:
- supports ad-hoc data structures or schemas per your preference
- supports all common types natively (doesn't require special string encoding like base64 or such nonsense)
- supports comments, metadata, references (for recursive/cyclical data), custom types
- doesn't require an extra compilation step or special definition files
- Has parallel binary and textual forms so that you're not wasting CPU and bandwidth serializing/deserializing text. Everything stays in binary except in the rare cases where humans want to look or edit.