--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To post to this group, send email to jackso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
OK! I solved half of the problem.Turns out my super class A had getters and setters in it involving maps and I didn't realize I had to annotate everything with @JsonIgnore.How do I make the default turn off getters and setters and constructors unless specifically marked for de-serialization?
Second part of the problem:I now have this working with the following decorator:@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.PROPERTY, property="class")@JsonSubTypes({@Type(value = B.class, name = "B")})I would like to just say:@JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="class")or@JsonTypeInfo(use=JsonTypeInfo.Id.MINIMAL_CLASS, include=JsonTypeInfo.As.PROPERTY, property="class")I ran this with MINIMAL_CLASS provided ".B" as the value to "class".I got the following error:-E- Caught exception; java.lang.IllegalArgumentException: Invalid type id 'my.path.to.bclass.is.this.B' (for id type 'Id.class'): no such class foundIn reality "my.path.to.bclass.is.this" is my actual path.So this is really weird: Jackson found the full path from ".B" but then says the class could not be found. Do you know what the issue is here?