Hi,
in method JSONValue.escape(String s, StringBuffer sb) I think you are missing the escape of single-quote character.
Here is the proposed patch:
Index: trunk/src/org/json/simple/JSONValue.java
===================================================================
--- trunk/src/org/json/simple/JSONValue.java (revision 185)
+++ trunk/src/org/json/simple/JSONValue.java (working copy)
@@ -231,6 +231,9 @@
case '"':
sb.append("\\\"");
break;
+ case '\'':
+ sb.append("\\\'");
+ break;
case '\\':
sb.append("\\\\");
break;
Let me know what do you think about.
Bye
Piero
Original issue reported on code.google.com by ottu...@gmail.com on 10 Aug 2011 at 2:34
Original issue reported on code.google.com by
ottu...@gmail.com
on 10 Aug 2011 at 2:34