jasnell/specs — pull request #3 by manger (2013-05-22 14:31:23+00:00)
Title: More examples: unchanged null; created parents

Two more test cases to illustrate some less intuitive cases:

{"e":null} + {"a":1} = {"e":null,"a":1}

Shows that a field not mentioned in a patch (eg "e") is unchanged, even when it has a null value.

{} + {"a":{"bb":{"ccc":null}}} = {"a":{"bb":{}}}

Shows that a patch that superficially appears only to be removing a nested field (eg "ccc") can actually create the parent objects on the way to that nested field.

http://www.ietf.org/mail-archive/web/apps-discuss/current/msg09501.html