Hello, I am having a problem with rest and android, the problem is I have a transport object in example a class Human, which is extended by Male and Female, I want to use json as transport for the human object. if I use standard serialized objects, i would usually do
if(human instanceof Male.class){}
else if(human instance of Female.class){}
else{ throw new RuntimeException("incorrect class")}
how do I implement this in android with rest? I've seen that Gson and Jaskson which do not support polymorphism, on the server side we're using Apache CXF for rest, with jax-rs annotations Ideas/previous experiences??