Hello,
I can't figure out how to deserialize the following structure.
"years":{
"2019":{ /* contains "week" objects */ },
"2020":{ /* contains "week" objects */ },
"2021":{ /* contains "week" objects */ }
},
The mappers keeps saying
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "2019"
It looks for properties named after the years which is obviously not
possible.
I tried
public Map<String,Week> year;
and other variations but none worked.
Can someone point me to the right directions? (with an example maybe)
I'm stuck with this probably simple issue.
Thanks a lot in advance
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jackson-user/b936b9c7-6c48-4380-b044-ceb13c2849d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.