3 ms·
I don't really think that any of those are as important as comments, though. Comments are indispensable for a self-documenting config file. Trailing commas and
by scythe 3y ago
I don't really think that any of those are as important as comments, though. Comments are indispensable for a self-documenting config file. Trailing commas and so forth are merely convenient.
JSON with comments wouldn't be perfect, but it would be unacceptable a lot less often.
- m000 3y agoSupport for trailing commas is just the sane thing to do, especially since JSON is inspired by Javascript that already supports them. So does Python, Java, C++ and perhaps another half dozen of popular programming languages. Why the hell go the opposite way? I'm not sure who made the decision at the time, but looking back at the hours we have collectively wasted because of this non-feature, I believe they would have reconsidered.