wait... wait! are you telling me that #pnpm supports `package.json5` instead of `package.json`??? and I learn about it years later?
I've been praying for something like this for ages... and it turns out that we already had it.
Got friday vibes and hacked together a JSON5 implementation for jq! 🕺 💃
@srob True. And there is a Dart package for it so perhaps I could use it instead of the built-in parser library...hmm...
So I noticed the lack of prominent #JSON5 parsers for C++, and made one of my own: https://github.com/mortie/json5cpp
The goal is to be simple, robust, and a very small dependency for projects which already use JsonCpp.
Thoughts?
@slightlyoff I use #JSON5 in a Chrome Extension I own solely to comment the manifest and it works great.
I do think the bigger issue is that JSON is a terrible configuration language (but great wire format!). We should be using #TOML, #YAML, or something else more targeted for that use case.