Skip to content

Commit

Permalink
Adding another test for backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
coheigea committed Dec 6, 2022
1 parent 631c21e commit b3c4000
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/org/codehaus/jettison/json/JSONObjectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,11 @@ public void testFuzzerTestCase2() throws Exception {
// expected
}
}

public void testIssue58() throws JSONException {
Map<String, Object> map = new HashMap<>();
map.put("request", "{\"exclude\":[\".\",\"?\",\"+\",\"*\",\"|\",\"{\",\"}\",\"[\",\"]\",\"(\",\")\",\"\\\"\",\"\\\\\",\"#\",\"@\",\"&\",\"<\",\">\",\"~\"]}");
JSONObject jsonObject = new JSONObject(map);
JSONObject jsonObject1 = new JSONObject(jsonObject.toString());
}
}

0 comments on commit b3c4000

Please sign in to comment.