Earlier quoted context omitted.
We stopped having this problem over ten years ago when spec 1.1 was implemented. Why are people still harking on about it?
A new spec version doesn’t mean we stop having the problem. E.g. kubernetes wrote about solving this only five months ago[1] and by moving from yaml to kyaml, a yaml subset. [1]: https://kubernetes.io/blog/2025/07/28/kubernetes-v1-34-sneak...
FracturedJson
101–110 of 173 posts
Re: FracturedJson
#102Re: FracturedJson
#103Earlier quoted context omitted.
Because there's a metric ton of software out there that was built once upon a time and then that bit was never updated. I've seen this issue out in the wild across more industries than I can count.
I’m not here clanking down on Java for lacking Lambda features, the problem is that I did not update my Java environment past the 2014 version, not a problem with Java.
Re: FracturedJson
#104Nice. And BTW, thanks for supporting comments - the reason given for keeping comments out of standard Json is silly ( "they would be used for parsing directives" ).
Unrelated: why spaces inside the parentheses? It’s not the first time I see this, but this is incorrect!
if ( x == ( y + z ) * w ) {
Personally, I find it hard to read.Re: FracturedJson
#105This is pretty cool, but I hope it isn't used for human-readable config files. TOML/YAML are better options for that. Git diff also can be tricky with realignment, etc. I can see potential usefulness of this is in debug mode APIs, where somehow comments are sent as well and are rendered nicely. Especially useful in game dev jsons.
Re: FracturedJson
#106This is great! The more human-readable, the better! I've also been working in the other direction, making JSON more machine-readable: https://github.com/kstenerud/bonjson/ It has EXACTLY the same capabilities and limitations as JSON, so it works as a drop-in replacement that's 35x faster for a machine to read and write. No extra types. No extra features. Anything JSON can do, it can do. Anything JSON can't do, it can…
Re: FracturedJson
#107Re: FracturedJson
#108Re: FracturedJson
#109Re: FracturedJson
#110I love doing this type of formatting with source code. It'll be nice when people start writing linters that format code like this