|
Can we all just agree, as a community, to add comment support to our JSON parsers? Hell, I'd do a PR on V8 if I knew C++. It's ridiculous that I can't document notes on dependencies in my NPM package.json, or add a little reminder to my Sublime Text configuration as to why I set some value, because we're using JSON parsers that can't handle the concept of ignoring a line with a couple slashes prefixing it. IMO - either we add comments to JSON, or we stop using it for hand-edited configuration. |
Why not have
If that's not enough, use something other than JSON. Adding comments will just result in it being valid in some parsers and not others.