Details
-
Type: Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2.1
-
Component/s: None
-
Labels:None
Description
XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
System.out.println(xstream.toXML("\"I'm in quotes\" is here"));
is messed up. (can't be parsed by JS) problem is JsonHierarchicalStreamWriter.writeText method doesnt handle quotes well.
Also try combinations like this;
String test1 = "\"I start with a quote";
String test2 = "I end with a quote\"";
String test3 = " middle \" has quote ";