string.ify
string.ify copied to clipboard
.json() should omit object properties with value === undefined
undefined is not JSON compatible and will cause e.g. jq to barf.
~~Found https://www.npmjs.com/package/rundef to use as preprocessor~~
Unfortunately rundef mangles arrays.