Right now there is a single concrete class. So the server already knows at compile time which class to deserialized to. With an abstract class, it has no idea cause it doesn't know the underlying concrete type it should choose. From Michaels's research, it looks like you might have to add to the JSON parser for the abstract class to help it figure out.
Right now there is a single concrete class. So the server already knows at compile time which class to deserialized to. With an abstract class, it has no idea cause it doesn't know the underlying concrete type it should choose. From Michaels's research, it looks like you might have to add to the JSON parser for the abstract class to help it figure out.