Keys with undefined value are missing when converting to JSON
Ran into a quirk with JSON.stringify() recently. If you have an object with some keys of value undefined, they will be omitted when converting to JSON: I’m sure there’s a good reason for this (it’s in the spec after all), but I had some data that needed those keys to be conserved. Luckily there’s an […]