users@jersey.java.net

Re: [Jersey] Polymorphic deserialization of JSON?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Sun, 10 May 2009 11:16:10 +0200

You also can use a xsd:choice element:
http://www.w3schools.com/Schema/el_choice.asp

and then to define what kind of types are supported by your choice..
not so elegant, but it should serialize without problems..