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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -