-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation