News for hackers. Stuff that matters.
Re:JSON Patch – a format for describing changes to a JSON do... by drderidder on Thursday October 30, 2014 @12:02AM (#8531306)
Oh, good - someone wrote an RFC for it - thanks for the link! It looks a lot like a post on partial updates in REST [1] where I recommended using null in the context of relational databases like mysql. Now I kinda feel undefined might be a better way to explicitly delete properties, especially if using a NoSQL database.

1.http://51elliot.blogspot.ca/2014/05/rest-api-best-practices-...

Re:JSON Patch – a format for describing changes to a JSON do... by logn on Thursday October 30, 2014 @12:31AM (#8531383)
I think they used null for deletion because undefined isn't in the JSON spec. It's more of a Javascript standard.
Re:JSON Patch – a format for describing changes to a JSON do... by drderidder on Thursday October 30, 2014 @09:53AM (#8532894)
Thanks, 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.