users@jersey.java.net

Re: [Jersey] Unmarshaling JAXB object from JSON

From: Chad McHenry <mchenryc_at_gmail.com>
Date: Tue, 31 Mar 2009 20:45:55 -0400

Have you seen this blog post?
http://blogs.sun.com/japod/entry/configuring_json_for_restful_web

I believe that's where I first heard of using a JAXBContextResolver and it
has been very easy to both serialize and deserialize my objects.

On Tue, Mar 31, 2009 at 11:36 AM, Farrukh Najmi <
farrukh_at_wellfleetsoftware.com> 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.
>
> --
> Regards,
> Farrukh
>
> Web: http://www.wellfleetsoftware.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>


-- 
On April 20, I will be running 26.2 miles, my first marathon, through the
city of Boston!
Help me do this, while raising funds for Melanoma awarness at
http://firstgiving.com/chadmchenry
...and don't forget your sunscreen!