How to simply provide a target class in a custom deserializer? #242
-
Hi, I'm struggling to find how to implement this which probably is very easy... I'd like to simply annotate the common parent class to use my deserializer. The behaviour should be very similar to using @JsonTypeInfo and @JsonSubTypes specifying classes. The difference is that I need to have some custom code logic instead of just annotating which class to instantiate. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Polymorphic type detection is not done by actual |
Beta Was this translation helpful? Give feedback.
Polymorphic type detection is not done by actual
JsonDeserializer
butTypeDeserializer
, configuration of which is by annotations (or "Default Typing"). There is no simple way to override this functionality.