users@jersey.java.net

Jersey not converting JSON arrays correctly when marshalling objects to XML

From: Anjum Naseer <tpanjum_at_hotmail.com>
Date: Thu, 12 Mar 2009 21:39:53 +0000

Hi,

I noticed that Jersey (v1.0.2) produces multiple end tags for JSON
arrays when converting them to XML.

I managed to track this down to a bug in the version of Jettison
(v1.0.1) distributed with Jersey. It can be fixed by using the following
Jettison snapshot:

http://snapshots.repository.codehaus.org/org/codehaus/jettison/jettison/1.1-SNAPSHOT/jettison-1.1-20081118.085058-7.jar

I then amended jersey-json-1.0.2.pom to use this version and it seems to
have fixed my problems. Are there any plans to incorporate this Jettison
fix in the Jersey maven distribution?

Thanks in advance.

Anjum.


_________________________________________________________________
 25GB of FREE Online Storage – Find out more
http://clk.atdmt.com/UKM/go/134665320/direct/01/