4 ms·
To be fair, that's more of a JSON problem than a JS one. FWIW, JSON is also missing quote-less keys, object literal shorthand, non-decimal numbers, values that
by amarshall 7y ago
To be fair, that's more of a JSON problem than a JS one. FWIW, JSON is also missing quote-less keys, object literal shorthand, non-decimal numbers, values that are non-simple literals, and probably a bunch else from JS object syntax.
Just `JSON.stringify` whatever object it is instead.
- Groxx 7y agoNo comments either, which is one major reason I strongly oppose JSON as a config-file language :|