3 ms·
Is "undefined" part of json? Imho it should be.
by amelius 11y ago
Is "undefined" part of json? Imho it should be.
- svachalek 11y agoIf the key is not present, the value is "undefined" in JS. "null" is a supported value in JSON, to explicitly mark something as nonexistent. For me the biggest problem with JSON is lack of full floating point support, i.e. NaN, +-Infinity, -0.
- amelius 11y agoYou can stringify an object containing a property with an undefined value. Imho, parsing that back should give exactly the same data structure.