News for hackers. Stuff that matters.
Re:SQLite Release 3.42.0 by hgsgm on Tuesday May 16, 2023 @11:41AM (#35963374)
How does that relate? Your config parser can disregard commments.
Re:SQLite Release 3.42.0 by arp242 on Tuesday May 16, 2023 @11:52AM (#35963558)
Yes, but JSON was never intended for that use case – the feature set isn't geared towards it.
Re:SQLite Release 3.42.0 by mikepurvis on Tuesday May 16, 2023 @11:53AM (#35963568)
I think the point is that your config parser should be using yaml or toml, though in fairness neither of those existed in the early 2000s when JSON was being developed/discovered/adopted— the 800lb gorilla in that space at the time was XML.

And XML remained dominant for a long time— for example, the original Google Maps from 2005 received its server responses as XML blobs, and API v2 even exposed the relevant parsing functionality as the GXml JavaScript class. By around 2007, it was all JSONp I think, and GXml was deprecated and removed in API v3 and v4 respectively.

Re:SQLite Release 3.42.0 by deepsun on Tuesday May 16, 2023 @11:58AM (#35963666)
What comments? JSON doesn't have any.

And editor will rightfully mark them as errors.

Re:SQLite Release 3.42.0 by anentropic on Tuesday May 16, 2023 @12:07PM (#35963829)
that's the JSON5 support
Re:SQLite Release 3.42.0 by deepsun on Tuesday May 16, 2023 @12:11PM (#35963889)
That's my point. Parent says that config parser can disregard comments. Why would it need to disregard comments if it was json5?