Re:YAML: Probably not so great after all
by Waterluvian on Sunday August 18, 2019 @03:57PM
(#20732441)
I just want json with comments. Is that too much to ask?
[ Parent
| on HN ]
Re:YAML: Probably not so great after all
by roryokane on Monday August 19, 2019 @01:34AM
(#20735142)
Someone else already mentioned JSON5 (https://json5.org/), which is JSON with a few ergonomic improvements, including comments. Hjson (https://hjson.org/) is a similar, slightly more complex format with a few extra features such as unquoted strings for object values.
I just want mainstream/built-in JSON parsers to be able to ignore comments and trailing commas. What ever happened to lax parsing?