-
-
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
Null inclusion bug in Jackson 2.9.10 #2851
Comments
Two questions/comments
|
|
Ok, here's a quick answer: https://github.com/FasterXML/jackson-future-ideas/wiki/JSTEP-3 but this would probably use different settings, for backwards-compatibility reasons. So, when using (*) there may be an edge case for possible usage of |
Glad to know the plan, and thanks. |
Facing the same problem with #2092 . Agree to
JsonNode
is taken to be literal expression of intent, so JsonNode.toString should keep null field (wrappered by NullNode). But, object mapper which specified JsonInclude.Include.NON_NULL option should skip NullNode when serialize JsonNode, becausenull
value in json string means literal Java (JVM)null
values for Java.In contrast, gson's behavior is more reasonable
By the way, when I try to skip NullNode through configuration,
new SimpleModule().addSerializer(NullNode.class, new NullNodeAdapter())
seems doesn't work, filtering doesn't work with JsonNode?The text was updated successfully, but these errors were encountered: