users@jersey.java.net

JSON deserialization issue

From: Turner, George <george.turner_at_lmco.com>
Date: Mon, 20 Apr 2009 16:10:45 -0600

I am trying to get some help on resolving an issue on some new code
using 1.0.3 that is using the "natural" implementation for JSON.

My classes all have JAX XML annotations, as created using JAXB XJC.

 

I have a top level parent Participant class containing two Lists of
child Group and Devices classes. The Group and Device classes have a
reference to parent Participant that is annotated XMLTransient.

 

When I serialize to JSON, everything works fine, but when the JSON
de-serializes to Java, the Lists are null.

 

If anyone can provide some pointers as to what is happening or how to
fix it, it would be greatly appreciated.

 

The classes are attached. ( I have already tried removing the XmlType
and XmlRootElement annotations in the child classes with no change)

 

George (Gene) Turner

 

Senior Staff Software Engineer

Information Systems & Global Services

Work:(719) 277-5244 Cell:(719) 237-0490

george.turner_at_lmco.com

 

 








image001.png
(image/png attachment: image001.png)