4 ms·
> 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 confi
by flukus 10y ago
> 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.
- ivl 10y agoI 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.
- SomeCallMeTim 10y agoI 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.
- piaste 10y agoVSCode 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?
- Perseids 10y agoJSON5 [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/ http://json5.org/