Replies: 2 comments 7 replies
-
Could you elaborate further how exactly is deserialized? |
Beta Was this translation helpful? Give feedback.
4 replies
-
We would need full reproduction, not just snippets. I suspect in general use of more than one |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am in the process of trying to understand why I cannot correctly configure Jackson serialization to do what I want. I have already asked this on StackOverflow, but I haven't found a solution yet.
I have a simple bean which holds a string and a separate map of its localizations
I want to use this in another class
This should convert to the following in JSON
Using a contextual serializer that sets property name looks ok for the serialization.
However, I have a problem when trying to deserialize this. I always get the string in
value
instead of the whole node that representsMyFancyClass
. I would like to just read the two properties (name
andname_l10n
) to construct aLocalizedField
.I have prepared a sample project here: kariem/jackson-multiple-fields
Any hints on what I could try?
Beta Was this translation helpful? Give feedback.
All reactions