Re: [jackson-user] Polymorphic deserialization - @JsonTypeInfo “defaultImpl” for collections

2017-08-09 Thread Tatu Saloranta
On Tue, Aug 8, 2017 at 11:24 AM, Jothisubaramaniam P wrote: > Thank you for the answer. > > The following also worked. i.e. I removed the explicit supply of type > information to the list attributes. > > public class Pets > { > @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = Do

Re: [jackson-user] Polymorphic deserialization - @JsonTypeInfo “defaultImpl” for collections

2017-08-08 Thread Jothisubaramaniam P
Thank you for the answer. The following also worked. i.e. I removed the explicit supply of type information to the list attributes. public class Pets { @JsonTypeInfo(use = JsonTypeInfo.Id.NAME , defaultImpl = Dog.class) List doggies; @J

Re: [jackson-user] Polymorphic deserialization - @JsonTypeInfo “defaultImpl” for collections

2017-03-06 Thread Tatu Saloranta
On Fri, Mar 3, 2017 at 3:16 AM, Jothisubaramaniam P wrote: > There is one set of definition as follows: > > @JsonTypeInfo( > use = JsonTypeInfo.Id.NAME, > include = JsonTypeInfo.As.EXISTING_PROPERTY, > property = "type", > visible = true) > @JsonSubTypes({ >