Closed fschopp closed 10 years ago
One possible reason here is the precedence of @JsonSerialize
annotations (property one has higher priority, masking one from class declaration) -- it is possible that "converter" from class is effectively ignored.
Thank you for unit test for this and other bug reports!
Turns out code just needed to re-check for existence of @JsonSerialize(using=...)
after target type was detected. Will be included in 2.4.0.
Jackson version: 2.3.0
In the example below, a list of
C
s should be serialized by converting eachC
to anA
. Unfortunately, Jackson uses the BeanSerializer for the conversion results instead of the serializer configured forA
.Actual output:
Expected output: