Re:JSON Patch – a format for describing changes to a JSON do...
by tracker1 on Thursday October 30, 2014 @12:45AM
(#8531430)
Most serializers will omit undefined (I don't believe it's allowed as a JSON value. That said, I think null should be sufficient. Though, MongoDB already defines update syntax pretty well, and would just assume follow that syntax.
http://docs.mongodb.org/manual/tutorial/modify-documents/
It's not perfect, but it is pretty widely used, and well thought out enough for this purpose.