Hacker News new | ask | show | jobs
by tombert 1003 days ago
What would you suggest? Just JSON everywhere?
3 comments

json, csv, text, html, binary blobs you dont create, whatever is easiest
I have never used Ion so I cannot speak to its use in practice, but I haven't really had too much of an issue with msgpack. It's faster than JSON, more compressed than JSON, without being any more difficult than any JSON library I've used. It's an almost-universal good for me; the only thing you lose is the ability to easily introspect the messages if there's an issue.
cbor even.

Honestly, if you’re in a case where you absolutely know none of these work for you and you can absolutely prove you need another, you’re probably just going to write your own. And that’s a fleetingly rare case.

My $0.02 is "yes, JSON everywhere". Specifically, one object per line, newline delimited, sorted keys, compressed with zstd or gzip.
Why?
I’m interested in the answer as well. Also interested what’s wrong with Ion