4 ms·
Blurg, now every tooling pipeline that uses JSON needs to include a JSMin step...
by artpepper2 8y ago
Blurg, now every tooling pipeline that uses JSON needs to include a JSMin step...
- Zamicol 8y agoIf you're making comments for yourself in config files you control: /\/\/.*/gm https://regexr.com/3rbgb https://regexr.com/3rbgb
- lolc 8y ago"hello // syntax error"
- Zamicol 8y agoYou are 100% correct. For not single line comments, "//" in the datastructure, and everything else there are already well tested solutions for the problem. https://github.com/sindresorhus/strip-json-comments https://github.com/sindresorhus/strip-json-comments My point is only that this isn't a big issue. I don't understand why so many see it as a large issue. Instead, projects use non-standard YAML or other problematic solutions only because "JSON doesn't have comments".