-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Change ObjectMapper.valueToTree()
to convert null
to NullNode
#2430
Comments
ObjectMapper.valueToTree()
to convert null
to NullNode
ObjectMapper.valueToTree()
to convert null
to NullNode
; treeToValue()
NullNode
to null
ObjectMapper.valueToTree()
to convert null
to NullNode
; treeToValue()
NullNode
to null
ObjectMapper.valueToTree()
to convert null
to NullNode
Interestingly, I think this change leads to a subtle behaviour change when combined with Jdk8Module. We have a test for a I guess it's splitting hairs, but previously this meant it was possible to differentiate between an attribute that was missing entirely and one that was present but with |
@asnare Hmmh. So, two things should not be directly related: IF you can easily reproduce this, could you please file an issue against |
It looks like
valueToTree()
method will currently simple returnnull
ifnull
is passed.For many other conversions this makes sense, but in case of
JsonNode
, it would make more sense to returnNullNode
.The text was updated successfully, but these errors were encountered: