users@jersey.java.net

[Jersey] Re: Best way to diagnose a 400 error on POST

From: Moises Lejter <moilejter_at_gmail.com>
Date: Wed, 15 Dec 2010 07:07:06 -0600

On the JAXB side, you could annotate your root class with @XmlSeeAlso(), and list there all your child types ...

Moises

Sent from my iPhone

On Dec 15, 2010, at 5:54 AM, Paul Sandoz <Paul.Sandoz_at_oracle.com> wrote:

> How are you generating the JSON?
>
> In the XML equivalent there should be an "xsi:type" attribute that declares the type and gives JAXB enough clues on what to do. That information should also be present in the JSON.
>