Class JsonUnwrappedDeserializer<T>

  • All Implemented Interfaces:
    ContextualDeserializer, NullValueProvider

    public class JsonUnwrappedDeserializer<T>
    extends JsonDeserializer<T>
    implements ContextualDeserializer
    Desc: this is a workaround on the problem that Jackson's @JsonUnwrapped doesn't work with polymorphism (@JsonTypeInfo) Adapted from https://stackoverflow.com/questions/37423848/deserializing-polymorphic-types-with-jsonunwrapped-using-jackson