users@jersey.java.net

JAXB JSON Marshalling/Unmarshalling

From: Ni Yue <ni2yue4_at_gmail.com>
Date: Fri, 22 May 2009 16:54:58 +0800

Hello everyone,

I am using Jersey to serve JSON request/response and met some issue. Because
in my xml schema, there're multiple namespaces, and I would like to use
mapped jettison notation to produce JSON response. But it seems mapped
notation is always used during marshalling to JSON even if I specified
mapped jettison configuration in my JAXBContextResolver. How can I make
Jersey to use different notation during producing JSON response? I found
only when unmarshalling JSON request, different JSON unmarshaller will be
pickuped according to notation. I am using Jersey 1.0.3. Thanks in advance.

Regards,
Samuel Ni