top | item 45474124

(no title)

onetom | 4 months ago

I wonder, how rigidly has the JSON format been baked into the protocol.

It feels like a shortsighted choice, just because it's prevalent in recent decades.

It took years to implement performant parsers for it and it has a lot of quirks, missing features and the tons of double quotes and mandatory commas significantly harm its human readability...

Not sure what would I recommend instead, but personally I would prefer using EDN instead, as a Clojure programmer

https://github.com/edn-format/edn

discuss

order

verdverm|4 months ago

You can write lexicon (the schema) in whatever language you want and then transform them to JSON for sharing.

The record format should be something widely used and implemented for sending over the wire. There are lots of languages and ecosystems participating.

rixed|4 months ago

  > The record format should be something widely used and implemented for sending over the wire.
That's just one of the parameters. It should also be something efficient if it's going to be sent over the wire at scale.