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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -