7 ms·
JSON5 pretty much addresses all the problems with JSON as a config format. I'd love for it to just replace JSON entirely. https://json5.org/ https://json5.org/
by Anaminus 6y ago
JSON5 pretty much addresses all the problems with JSON as a config format. I'd love for it to just replace JSON entirely.
https://json5.org/ https://json5.org/
- quotemstr 6y agoGenerally looks good, but ugh, I dislike allowing single quotes. Allowing single quotes has close to zero ergonomic value but increases the number of ways to write the same fundamental thing. But that's a minor quibble. If everyone adopted this thing instead of legacy JSON, we'd be better-off.
- gridlockd 6y agoHaving two ways to quote is a useful feature, not just one way to do the same thing. Javascript already has this, so allowing single quotes simplifies copypasting object literals, which is a common use case.
- tornato7 6y agoThat looks really nice. I might start using it for configuration.