2 ms·
Some implementations allow comments. There is a project called JSON5 that also allows trailing commas, and maybe omitting quotes for keys. I have some (private
by captainmuon 9y ago
Some implementations allow comments. There is a project called JSON5 that also allows trailing commas, and maybe omitting quotes for keys.
I have some (private) libraries in C++, Python, and Nim that support those features, too. Basically it understands JavaScript object literals. If I find some time, I'll package them up and publish them.
One thing I'd really like to change is to make the parser round-trippable, so it remembers all the whitespace and comments, and if you use these pseudo-json as config files, you can make programmatic changes without loosing anything.