Hi!
In certain situations, when replacer function in JSON.stringify returns
undefined, the output string is not valid JSON:
QuickJS - Type "\h" for help
qjs > JSON.stringify({a: 3, b: 4}, (key, value) => (key === 'a') ? undefined
: value)
"{,\"b\":4}"