users@jersey.java.net

Re: [Jersey] Polymorphic deserialization of JSON?

From: Chad McHenry <mchenryc_at_gmail.com>
Date: Sun, 10 May 2009 12:45:32 -0400

On Sun, May 10, 2009 at 12:43 PM, Tatu Saloranta <tsaloranta_at_gmail.com>wrote:

> 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...


Agreed


>
>
> -+ Tatu +-
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>