2 ms·
Shameless plug: Human JSON, http://hjson.org http://hjson.org A different approach to using JSON for configuration files. It sits between JSON and YAML.
by chris-at 12y ago
Shameless plug: Human JSON, http://hjson.org http://hjson.org
A different approach to using JSON for configuration files. It sits between JSON and YAML.
- kbd 12y agoI 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?
- chris-at 12y agoNo, 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.