This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes GSON exclusionStrategy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "GSON exclusionStrategy" Watch "GSON exclusionStrategy" New topic
Author

GSON exclusionStrategy

preeti vivek gupta
Greenhorn

Joined: Jan 13, 2012
Posts: 5
Hi,

I am having trouble with GSON exclusionStrategy implemenation.I need to implement GSON serialization filtering based on template. in GSON. in GSON exclusionStrategy , shouldSkipField , I need to know field's concrete class, where am I in class hierarchy


My class structure is as following:-

class A{
String id;
}

class B{
String bb;
String bbb;
}

class c extends A{
String cVal;
B bObj;
}


I want to access 'id' field via class c, but id field's declaring class comes as A instead of c.

Thanks in advance,
Preeti
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GSON exclusionStrategy
 
Similar Threads
JSON Formatting with Jersey, Jackson, & Google's GSON
JSON Parsing and NaN and Infinity
Tomcat 7 throwing "A message body reader for... is not found"
Calling DB onSelectRadio and populating another table in the same JSP page
Ajax with java