We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51bcbeb commit c7fdadaCopy full SHA for c7fdada
1 file changed
src/test/org/json/junit/JSONObjectTest.java
@@ -1924,4 +1924,10 @@ public void optQueryWithNoResult() {
1924
public void optQueryWithSyntaxError() {
1925
new JSONObject().optQuery("invalid");
1926
}
1927
+
1928
+ @Test(expected = JSONException.class)
1929
+ public void invalidEscapeSequence() {
1930
+ String json = "{ \"\\url\": \"value\" }";
1931
+ new JSONObject(json);
1932
+ }
1933
0 commit comments