xstream.registerConverter(converter);
return xstream;
}
public static void main(String[] args) {
JSONSerializationCustomized ser = new JSONSerializationCustomized(null, new DefaultTypeNameExtractor(), null);
XStream xstream = ser.getXStream();
List l = new ArrayList();
l.add(new Item("a", "b"));
l.add(new Item("d", "c"));
System.out.println(xstream.toXML(l));