News for hackers. Stuff that matters.
Re:Goodbye Hjson by ianbicking on Friday September 14, 2018 @02:56PM (#17989858)
I always meant to use hjson somewhere, but never managed to. YAML is so complicated, and JSON is almost fine, except for: no comments, no multiline strings. Quoting keys is tedious but not terrible. Personally I don't mind quoting string values at all.

There are places with slightly relaxed JSON, like JSON + comments (e.g. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...). But it's often not well documented, and because these relaxations lack a name there's no commonly accepted set of relaxations.

But I guess we should just accept YAML, as it seems to be the standard-that-isn't-json.

Re:Goodbye Hjson by bosaisi on Friday September 14, 2018 @03:05PM (#17989935)
Try TOML. It's like a better YAML, and seems to be getting some good adoption.
Re:Goodbye Hjson by MrTonyD on Friday September 14, 2018 @03:52PM (#17990369)
Agree completely. I usually use YAML just so I can document my work using comments. If they added "heredoc" and comments, I think that I would be happy with JSON forever.
Re:Goodbye Hjson by geezerjay on Friday September 14, 2018 @03:58PM (#17990420)
> no multiline strings

I thought that the JSON way of implementing multiline strings was through an array of strings.