Skip to main content


JSON not allowing trailing commas kills me every time. I'm so used to using them as a matter of course when writing code. I'll pop champagne if the spec is ever updated to support it. It's the little things... (trailing ellipsis unnecessary but intentional)
#programming #JavaScript
Unknown parent

Unknown parent

in reply to Hank G ☑️

We tend to use the YAML parsers (under Python) to parse JSON. There is sometimes some issues with the JSON parser whether character strings in the parse tree end up as Python 3 byte sequences or Unicode strings. We don't seem to have that uncertainly with the YAML parser.
in reply to Hank G ☑️

There is a "JSON5" format out there that you could like, with some libs in various languages ;)
in reply to Srob

True. And there is a Dart package for it so perhaps I could use it instead of the built-in parser library...hmm...

#DartLang #json5

https://pub.dev/packages/json5

in reply to ericjmorey

The biggest use case I've had for comments was in config files, like package.json - to answer questions like "why in the name of all the gods did we pin this package to an rc version in 2019, and can we not?"