5 ms·
I think they used null for deletion because undefined isn't in the JSON spec. It's more of a Javascript standard.
by logn 12y ago
I think they used null for deletion because undefined isn't in the JSON spec. It's more of a Javascript standard.
- drderidder 12y agoThanks, you're right. "null" is what I do use - I forgot undefined won't work with JSON.parse. It would be nice to have a way to explicitly define a property as null, versus non-extant.