News for hackers. Stuff that matters.
Re:JSON with Commas and Comments by kstenerud on Tuesday February 23, 2021 @04:39AM (#26235434)
I made https://concise-encoding.org/ to deal with this:

- strongly typed

- ad-hoc or schema (your choice)

- no code generation step

- edit in text, send in binary

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?
Re:JSON with Commas and Comments by kstenerud on Tuesday February 23, 2021 @10:31AM (#26238405)
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.

Re:JSON with Commas and Comments by PixyMisa on Tuesday February 23, 2021 @06:50AM (#26236234)
That looks pretty good, actually.