3 ms·
I do the same, but instead of switching/patching the JSON parser, I replace it with a YAML one. YAML was designed to be a superset of JSON precisely so that it
by drodgers 9y ago
I do the same, but instead of switching/patching the JSON parser, I replace it with a YAML one. YAML was designed to be a superset of JSON precisely so that it could be used as an upgrade path. It also allows comments and neat multiline string formatting (in addition to trailing commas).
- captainmuon 9y agoThat is a good option, but YAML is too complex for my taste, with the optional indentation based syntax. JSON + comments, like what sublime text uses for configs, is a sweet spot for me. If you know JS or Python, you can probably write it instinctively.