users@jersey.java.net

Re: Jersey JSON unmarshalling of array elements.

From: rameshb <beeyarkay_at_yahoo.com>
Date: Tue, 11 May 2010 14:09:47 -0700 (PDT)

I am in a similar situation and am using Jersey 1.2. (jaxb 2.1.12). I have to
support both XML and JSON formats in my REST service. XML seems to work fine
when left alone (based on my xsd). If I remove elementFormDefault in xsd,
the xml response starts adding ns2 infront of tags, but JSON works fine. If
I add elementFormDefault in xsd, XML works fine, but JSON does not
unmarshall.

I was not sure how to register the JSONJacksonProvider. Could you please
point me to that?

Thanks,
Ramesh
-- 
View this message in context: http://jersey.576304.n2.nabble.com/Jersey-JSON-unmarshalling-of-array-elements-tp4442186p5038299.html
Sent from the Jersey mailing list archive at Nabble.com.