We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5e234a + 9de3005 commit b258ea3Copy full SHA for b258ea3
1 file changed
src/main/java/org/json/JSONArray.java
@@ -105,6 +105,8 @@ public JSONArray(JSONTokener x, JSONParserConfiguration jsonParserConfiguration)
105
if (nextChar == 0) {
106
// array is unclosed. No ']' found, instead EOF
107
throw x.syntaxError("Expected a ',' or ']'");
108
+ } else if (nextChar==',' && jsonParserConfiguration.isStrictMode()) {
109
+ throw x.syntaxError("Array content starts with a ','");
110
}
111
if (nextChar != ']') {
112
x.back();
0 commit comments