Problem with JsonInclude
config overrides for java.util.Map
#2573
Milestone
JsonInclude
config overrides for java.util.Map
#2573
I'm on version
2.10.1
(latest) and below are the sample code, output and issues with it.Code:
Output:
Issues:
In
Test2
,Weight
property is included when properties map is serialized directly. Config override forMap
class is set toUSE_DEFAULTS
which ultimately should resolve toNON_NULL
as set on the mapper object, so weight should not be included and the output should be the same asTest1
.In
Test3
,Weight
property is missing whenCar
is serialized.Include
forMap
class has been overridden withALWAYS
yetWeight
property with null value is ignored when serializing the class. However, it is included when the map is serialized directly.The text was updated successfully, but these errors were encountered: