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?
The new .net uses json, it's awful. No comments allowed and it get's pretty unreadable when you have nested configuration elements.