qminer
qminer copied to clipboard
JSON parsing
Fix how undefined is handled: [undefined] -> [null], {a:undefined} -> {}
What exactly does this issue refer to? Converting V8 Objects to PJsonVal?
Yes, its about convertin v8 objects (not strictly JSONs) to PJsonVal. If you send [undefined] you will not end up with [null] PJsonVal. It would be good if we would be consistent with: JSON.parse(JSON.stringify([undefined]))
Btw, both [undefined] and {a:undefined} are not JSON objects, because undefined is not a part of the standard, so it's not that our implementation is wrong...