You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Jackson is willing to deserialize JSON into a target of type Object as simple Java types--String, Integer, Map, and such. This means that I can successfully deserialize a target property of
Map<String, ? extends Object> miscProperties;
with the results being objects of basic types. So far so good.
However, if I instead I use Serializable as the generic bound, Jackson complains that
Can not construct instance of java.io.Serializable: abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
While in the case of general type resolution I understand the rationale for what's going on here, in practice every single type that Jackson will produce when faced with a deserialization into ObjectisSerializable, and it should treat a target of Serializable identically to a target of Object.