Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Labels:None
-
Environment:1.1 with xstream 1.3.1, sun jdk 1.6 in linux.
-
Number of attachments :
Description
I am using xstream 1.3.1 to generate json. I have a generic list with a structure like such
import xxx.xxx.A;
List<A> aList;
XStream xstream = new XStream(new JettisonMappedXmlDriver());
xstream.setMode(XStream.NO_REFERENCES);
String s=xstream.toXML(product);
It will generate something like below
["List":["xxx.xxx.A":[FIRST,SECOND,...]]
I switch to their internal driver and the "xxx.xxx.A" level goes away
["List":[FIRST,SECOND,...]]