When using merge_patch with an object like {{"k", {}}}, different results are obtained than with other methods for providing an empty object.
Example: https://wandbox.org/permlink/7SDUyC98tSZX7sPL
Like...
start with: {"k":{"a":"b"}}
merge_patch({{"k", json({})}}) --> {"k":{"a":"b"}}
merge_patch({{"k", {}}}) --> {}
It may be that I'm confused about what {} means here. If it's equivalent to null, then I think this makes sense. But I don't see anything in the README about that being the case.
When using
merge_patchwith an object like{{"k", {}}}, different results are obtained than with other methods for providing an empty object.Example: https://wandbox.org/permlink/7SDUyC98tSZX7sPL
Like...
It may be that I'm confused about what
{}means here. If it's equivalent tonull, then I think this makes sense. But I don't see anything in the README about that being the case.