News for hackers. Stuff that matters.
Re:JSON with Commas and Comments by coldtea on Monday February 22, 2021 @10:41PM (#26233585)
>Doug not only explains the reason

Just because he had a reason to give doesn't mean it wasn't a bad reason. His stated reasoning failed with hindsight.

(a) People already do what he thought was preventing (custom parser behavior) by removing comments, (so his choice failed to prevent what he wanted to prevent)

(b) people have already created dozens of JSON parser variants that accept comments, because we really want those. And not just some niche devs - Microsoft and dozens of other big companies have tools that accept JSON + dangling commas + extra comments (so his choice was second-guessed and bypassed anyway, just in ad-hoc ways instead of a better universal one).

It wasn't his place to define whether we get comments or not based on some potential parser abuse. But he did it, and now we're stuck with that decision...

Re:JSON with Commas and Comments by rswail on Wednesday February 24, 2021 @04:14AM (#26248124)
> It wasn't his place to define whether we get comments or not based on some potential parser abuse. But he did it, and now we're stuck with that decision...

He was writing the specification, of course it was his place to do so. Who else would be in the right "place" to write his own specification that no one was enforced to use.

Re:JSON with Commas and Comments by sagonar on Tuesday February 23, 2021 @05:41AM (#26235763)
I disagree, he has DONE a common data format that works. If you do mod it, for example add comment to the data sent, 99.9% of the people agree, it is no longer JSON.
Re:JSON with Commas and Comments by coldtea on Wednesday February 24, 2021 @12:48AM (#26247022)
Which is neither here, nor there.

People still do it, and they still call it JSON. Heck, many JSON parsers, who otherwise work fine with regular JSON still accept it.

Even parsers using a different name like JSONC still allude to the JSON connection - and still are an argument that people found a lack in JSON.

Etymology/originology never produced much benefit over pragmatic non-prescriptive examination of how people use things. If anything, it helped confused the situation with pedantic objections.