You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@crumbpicker Right, this sounds very much like 2.6 behavior, and something that has caused lots of grief. Behavior in 2.7 same as 2.5 and before: default values like 0 for int may now be excluded by using NON_DEFAULT, and NON_EMPTY is strictly reserved for things with "more natural" concept of emptiness (Strings, arrays/Collections/Maps, referential types like Optional).
After switching to the Jackson Module 2.7.2 I have the same issue than this one:
FasterXML/jackson-databind#849
The symptom is that primitive fields equals to zero are not exported in the JSON string when including NON_EMPTY fields.
The problem seems to be solved in Jackson core. Is there a compatibility issue with the module ?
The text was updated successfully, but these errors were encountered: