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
But I am not sure why you would want to define a java.lang.Integer(0) as an empty field and turning this off is not an option for us since that makes every empty element show up...
Carrying on with my little test project to isolate the issues we are seeing with Jackson, I have the following class:
And the object structure is being put together like this:
In JAXB, the output is what you would expect:
With Jackson, the <extension> element in missing from the emp-2 employee.
If I set the value to anything non-zero, the element appears. How can I get Jackson to not remove Integer elements set to 0?
The text was updated successfully, but these errors were encountered: