News for hackers. Stuff that matters.
Re:JSON vs. YAML – try it yourself by chris-at on Tuesday April 07, 2015 @03:07AM (#9332397)
Shameless plug: Human JSON, http://hjson.org

A different approach to using JSON for configuration files. It sits between JSON and YAML.

Re:JSON vs. YAML – try it yourself by kbd on Tuesday April 07, 2015 @03:39AM (#9332486)
I like the idea. I like that you even round-trip comments. I suppose that doesn't add too much complexity to the implementation?

Have you ever been bitten by the dwimmy typing of numeric and true/false/null data?

Re:JSON vs. YAML – try it yourself by chris-at on Tuesday April 07, 2015 @04:01AM (#9332543)
No, the whole implementation is actually very simple. It's based on the 'standard' parsers for JS/C#/Python and only differs for handling quoteless stings and the optional syntax.

No problems with dwimmy typing ;) - not saying that it couldn't happen but I think that would be the exception. Not having to use quotes/escape characters helps a lot more.