Thank you. I was able to get that going properly according to the example.
~Ramesh
________________________________
From: Jersey Hudson [via Jersey] <ml-node+5049974-410010638-423502_at_n2.nabble.com>
To: rameshb <beeyarkay_at_yahoo.com>
Sent: Fri, May 14, 2010 1:23:22 AM
Subject: Re: Jersey JSON unmarshalling of array elements.
Hi Ramesh,
please see the example at [1]. Look at the src/main/java/META-INF/services
directory, where the files registering the Jackson providers are located.
HTH,
~Jakub
[1]
http://download.java.net/maven/2/com/sun/jersey/samples/jacksonjsonprovider/1.2/jacksonjsonprovider-1.2-project.zip
rameshb wrote:
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
________________________________
View message @
http://jersey.576304.n2.nabble.com/Jersey-JSON-unmarshalling-of-array-elements-tp4442186p5049974.html
To unsubscribe from Re: Jersey JSON unmarshalling of array elements., click here.
--
View this message in context: http://jersey.576304.n2.nabble.com/Jersey-JSON-unmarshalling-of-array-elements-tp4442186p5057120.html
Sent from the Jersey mailing list archive at Nabble.com.