users@jersey.java.net

Re: [Jersey] Polymorphic deserialization of JSON?

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Sun, 10 May 2009 09:43:15 -0700

2009/5/10 Felipe Gaścho <fgaucho_at_gmail.com>:
> 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..

I think the problem is not serialization -- since real type is always
available at that point -- but deserialization...

-+ Tatu +-