diff --git a/lib/json_simple-1.1.jar b/lib/json_simple-1.1.jar index a2b6607..f395f41 100644 Binary files a/lib/json_simple-1.1.jar and b/lib/json_simple-1.1.jar differ diff --git a/src/org/json/simple/JSONValue.java b/src/org/json/simple/JSONValue.java index 18bde72..aba3c40 100644 --- a/src/org/json/simple/JSONValue.java +++ b/src/org/json/simple/JSONValue.java @@ -252,17 +252,9 @@ public class JSONValue { case '/': sb.append("\\/"); break; - case '\u0085': // Next Line - sb.append("\\u0085"); - break; - case '\u2028': // Line Separator - sb.append("\\u2028"); - break; - case '\u2029': // Paragraph Separator - sb.append("\\u2029"); - break; default: - if(ch>='\u0000' && ch<='\u001F'){ + //Reference: http://www.unicode.org/versions/Unicode5.1.0/ + if((ch>='\u0000' && ch<='\u001F') || (ch>='\u007F' && ch<='\u009F') || (ch>='\u2000' && ch<='\u20FF')){ String ss=Integer.toHexString(ch); sb.append("\\u"); for(int k=0;k<4-ss.length();k++){