Skip to content

Commit b3c4000

Browse files
committed
Adding another test for backslashes
1 parent 631c21e commit b3c4000

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/java/org/codehaus/jettison/json/JSONObjectTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,11 @@ public void testFuzzerTestCase2() throws Exception {
204204
// expected
205205
}
206206
}
207+
208+
public void testIssue58() throws JSONException {
209+
Map<String, Object> map = new HashMap<>();
210+
map.put("request", "{\"exclude\":[\".\",\"?\",\"+\",\"*\",\"|\",\"{\",\"}\",\"[\",\"]\",\"(\",\")\",\"\\\"\",\"\\\\\",\"#\",\"@\",\"&\",\"<\",\">\",\"~\"]}");
211+
JSONObject jsonObject = new JSONObject(map);
212+
JSONObject jsonObject1 = new JSONObject(jsonObject.toString());
213+
}
207214
}

0 commit comments

Comments
 (0)