News for hackers. Stuff that matters.
Re:How to Avoid Being Called a Bozo When Producing XML (2005) by flukus on Sunday July 31, 2016 @07:54PM (#12199490)
> JSON (assuming everyone knows what this is)

The new .net uses json, it's awful. No comments allowed and it get's pretty unreadable when you have nested configuration elements.

Re:How to Avoid Being Called a Bozo When Producing XML (2005) by ivl on Sunday July 31, 2016 @10:25PM (#12199904)
I seriously think the lack of comments is a deal breaker for JSON config files for me. At least with what I'm doing now. I find myself changing configs a ton, and I love being able to simply change which blocks are commented to get what I want, without having to dig anywhere.
Re:How to Avoid Being Called a Bozo When Producing XML (2005) by SomeCallMeTim on Tuesday August 02, 2016 @01:38AM (#12207989)
I agree...and I found a Gulp plugin that lets me pre-strip comments from my JSON files as part of the build process.

So I use JSON-with-comments, but the app only sees the stripped files.

Re:How to Avoid Being Called a Bozo When Producing XML (2005) by piaste on Monday August 01, 2016 @01:43AM (#12200411)
VSCode uses comments for every line in its settings.json file.

I guess they figured it may not be correct JSON, but since they aren't sending those particular JSON files anywhere it doesn't matter?

Re:How to Avoid Being Called a Bozo When Producing XML (2005) by Perseids on Monday August 01, 2016 @05:12AM (#12201039)
JSON5 [1] is an extension to JSON that allows comments, multi line strings, additional commas at the ends of lists, and more. It has become my preferred config file format.

[1] http://json5.org/