Remix.run Logo
Levitating 5 hours ago

JSON is human-readable, why even compare it with this. Is any serialization format now just a "JSON alternative"?

18 minutes ago | parent | next [-]
[deleted]
creationix 4 hours ago | parent | prev | next [-]

- this encodes to ASCII text (unless your strings contain unicode themselves) - that means you can copy-paste it (good luck doing that with compressed JSON or CBOR or SQLite - there is a scale where JSON isn't human readable anymore. I've seen files that are 100+MB of minified JSON all on a single very long line. No human is reading that without using some tooling.

bawolff 3 hours ago | parent [-]

That kind of feels a bit worst of both worlds. None of the space savings/efficiency of binary but also no human readability.

Being able to copy/paste a serialization format is not really a feature i think i would care about.

dietr1ch 5 hours ago | parent | prev [-]

cat file.whatever | whatever2json | jq ?

(Or to avoid using cat to read, whatever2json file.whatever | jq)

creationix 4 hours ago | parent [-]

Or in this case, just do `rx file.rx` It has jq like queries built in and supports inputs with either rx or json. Also if you prefer jq, you can do `rx file.rx | jq`