News for hackers. Stuff that matters.
Re:Parsing gigabytes of JSON per second by legulere on Saturday October 23, 2021 @09:21AM (#28968132)
Re:Parsing gigabytes of JSON per second by strictfp on Saturday October 23, 2021 @09:39AM (#28968305)
There's also Minecraft NBT. It's a bit obscure but quite nice. https://minecraft.fandom.com/wiki/NBT_format
Re:Parsing gigabytes of JSON per second by rstuart4133 on Saturday October 23, 2021 @09:01PM (#28973912)
Or indeed ASN.1 [0], which started life in 1984 and is still used in a lot of places today.

The idea has been around for almost 40 years in arguably more complete format than any of the above up to and including a standardised schema representation.

It's not the lack of a suitable standard that's holding it back.

[0] https://en.wikipedia.org/wiki/ASN.1

Re:Parsing gigabytes of JSON per second by sitkack on Saturday October 23, 2021 @04:18PM (#28971858)
You should put your NBTs inside of a netstring, https://en.wikipedia.org/wiki/Netstring
Re:Parsing gigabytes of JSON per second by SigmundA on Saturday October 23, 2021 @09:33AM (#28968238)
Sure, looks good, plenty to choose from, just need to get everyone to agree on one.

Although I do like ones that have some concept of a schema to reduce repeated key size and allow validation.