3 ms·
At this point, I'd settle for JSON5 (http://json5.org/ http://json5.org/), which says any JSON that's a valid ECMAScript 5 object is valid JSON (including trail
by dlbucci 10y ago
At this point, I'd settle for JSON5 (http://json5.org/ http://json5.org/), which says any JSON that's a valid ECMAScript 5 object is valid JSON (including trailing commas, unquoted keys, single quote strings, and comments). I don't think it's very popular at this point though, but I guess I've never tried to use it.
- veesahni 10y agoThis is a good idea. Also browser makers won't feel like they're supporting another format. It's just a modernized version of JSON.
- colanderman 10y agoUgh no. Adding all that crap complicates writing a correct parser. JSON's value is in that it is easy to parse. If editing JSON is your problem, use a better editor. If you really want to use JSON as a config file format, use something like YAML instead.
- majewsky 10y agoOr TOML, if you find YAML's syntax too messy.