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
Then I tried to debug but it seams that coercion is not used.
Any idea?
Thanks alot
The text was updated successfully, but these errors were encountered:
danibs
changed the title
Deserialization empty String fields to null value doesn't work
Deserialization: empty String field to null value doesn't work
Sep 2, 2024
I think String is problematic special type since unlike many other types (like POJOs), it has natural value for empty character date case (empty String).
Coercion should work, logically, but does not.
As a work-around, I would suggest just having setter method like so:
Hi.
I'm using
<jackson-bom.version>2.17.2</jackson-bom.version>
and already resolved my problem withDate
using this configuration #561 (comment) .Now what I want is to convert:
to the field:
and when the text is empty what I want is to have
null
intesto
field.What I already tried is all the combinations of:
I also tried adding:
Then I tried to debug but it seams that
coercion
is not used.Any idea?
Thanks alot
The text was updated successfully, but these errors were encountered: