3 ms·
Ok but what I'm talking about is a little more specific. Talking about "human readability" of JSON and XML is a little bit like talking about human readability
by borplk 8y ago
Ok but what I'm talking about is a little more specific.
Talking about "human readability" of JSON and XML is a little bit like talking about human readability of JPEG or MP3.
Chasing after it creates a lot of problems.
Formats like JSON and XML often carry lots of textual information so it's tempting to want them to be like "just like text but with some extra stuff" but that creates its own problems.
So it would be interesting to have something like JSON but philosophically treat it like MP3. Meaning, don't assume that humans must fiddle with the bytes in a text editor with great ease so that the representation can be designed without the influence of "would the raw bytes look pretty to people?".
- zenhack 8y agoWhat you're proposing sounds like cbor and/or messagepack (which are virtually identical in their design), or argdata[1]. I agree it's a pretty solid spot in the design space. [1]: https://github.com/NuxiNL/argdata https://github.com/NuxiNL/argdata
- deleted 8y ago[deleted]