users@jersey.java.net

Re: [Jersey] Unmarshaling JAXB object from JSON

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 31 Mar 2009 17:39:01 +0200

On Mar 31, 2009, at 5:36 PM, Farrukh Najmi wrote:

>
> Hi Paul,
>
> In an earlier email you had mentioned that jersey can unmarshal a
> JAXB object from a JSON object.
> My jersey client sends a POST message with JSON string as value for
> a form parameter. How can I
> take that JSON string and unmarshal it to a JAXB object. I would be
> grateful for some focused tip on
> how to do this unmarshalling manually. Thanks.
>

What is the media type of the form "multipart/form-data" or
"application/x-www-form-urlencoded" ?

Paul.