java - GSON exclusionStrategy shouldSkipField need to know field's concrete class -
i having trouble gson exclusionstrategy implemenation.i need implement gson serialization filtering based on template. in gson. in gson exclusionstrategy , shouldskipfield , need know field's concrete class, in class hierarchy
my class structure following:-
class a{ string id; } class b{ string bb; string bbb; } class c extends a{ string cval; b bobj; }
i want access 'id' field via class c, id field's declaring class comes instead of c.
thanks in advance, preeti
Comments
Post a Comment