Multiple response binding #7622
Answered
by
yawkat
KarlHakanNordgren
asked this question in
Q&A
-
Hi! I have client which can receive a number of different DTOs. How can I bind the JSON to the POJO which best matches it? I notice that Custom Argument Binding is described here. Does it work similarly with binding responses? |
Beta Was this translation helpful? Give feedback.
Answered by
yawkat
Jun 29, 2022
Replies: 1 comment 1 reply
-
you should do this on the deserialization level. i think jacksons deduction-based polymorphism could do it |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KarlHakanNordgren
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you should do this on the deserialization level. i think jacksons deduction-based polymorphism could do it