This is looking for a needle in a haystack, it would be good if you
could shrink the query to the minimum that consistently reproduces the
problem. No, Jersey uses either Jettison or Jackson depending on how
you configure it (
http://jersey.java.net/nonav/documentation/latest/user-guide.html#json).
mvn dependency:tree should let you know if you're using Jackson (if you
don't see Jackson you're not), also the jacksonjsonprovider sample (
http://www.jroller.com/gmazza/entry/jersey_samples_on_cxf) shows how you
can switch to Jackson, maybe the problem will go away then.
Glen
On 10/25/2012 04:36 PM, Saroj Kumar wrote:
>
> Hi There
>
>
> We are using Jersey 1.1.5 and finding that jersey is returning a JSON
> response which is valid most of the times but, there are sometime when
> we are getting an extra "}" which makes it an invalid json response.
>
> I understand Jersey's json support is based on Jackson library. Can
> you please point me in the right direction?
>
> I am attaching samples of good and bad json, with this email.
>
>
> Please advise.
>
>
> Thanks in advance.
>
> -Saroj
>
--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza