-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge_patch: inconsistent behaviour merging empty sub-object #1289
Comments
JSON Merge Patch is defined here: https://tools.ietf.org/html/rfc7386
|
So I agree that this looks like |
since |
Indeed, the code |
@adam-p Do you need further assistance or can we close this issue? |
I'm good. Thanks. (Sorry for the delayed response.) |
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...
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.The text was updated successfully, but these errors were encountered: