users@jersey.java.net

[Jersey] Re: ObjectMapper cannot handle _at_XmlElement

From: Ryan Stewart <rds6235_at_gmail.com>
Date: Thu, 24 Mar 2011 11:59:45 -0500

Something like this is probably what you need:
http://wiki.fasterxml.com/JacksonJAXBAnnotations

On Thu, Mar 24, 2011 at 4:05 AM, Pengfei Di <pengfei.di_at_match2blue.com>wrote:

> Hello,
>
> I use XmlElement annotation on some jaxb class to rename some field in the
> generated json string . However, this annotation seems not to be recognized
> if I use ObjectMapper to parse the json string. What I get is an
> IllegalArgumentException. Is it possible to let ObjectMapper recognize this
> annotation?
>
> Thanks for any hint.
>
> Pengfei
>
>