HELP / FEATURE_REQUEST: Determining JsonSubType
based on field at the same level
#210
Unanswered
ConnerDelahanty
asked this question in
Q&A
Replies: 1 comment
-
I'd need to google for details myself, but the trick is https://stacktobasics.com/jackson-sub-types (instead of default So I hope this is enough breadcrumbs to locate the full information :) |
Beta Was this translation helpful? Give feedback.
0 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.
-
This is either a question, or a feature request if it does not exist!
Let's say I have a json object
This is relatively easy to do with Jackson with
However, a lot of APIs will type the inner object based on a field in the out element, i.e. the JSON looks like
I cannot seem to find a way to have Jackson support this without writing my own deserializer? Am I missing something, or would this be a useful feature to add to it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions