java - Jackson and Generics -
how jackson parse line in pojo has wildcard generic , taking account serviceaccount
abstract? has been attempted of course since serviceaccount
class abstract can't serialize. have not seen on google or jackson wiki answers question.
private serviceaccount<?>[] accounts;
what want polymorphic deserialization (the second solution on question accepted answer)
i'm not 1 hundred percent sure works generics, solves abstract class problem. considering java runtime has type erasure, don't think you'll have problem casting parsed object.
Comments
Post a Comment