mirror of
https://github.com/stleary/JSON-java.git
synced 2026-01-24 00:03:17 -05:00
Merge branch 'master' of https://github.com/marilynel/JSON-java
This commit is contained in:
@@ -105,6 +105,8 @@ public class JSONArray implements Iterable<Object> {
|
||||
if (nextChar == 0) {
|
||||
// array is unclosed. No ']' found, instead EOF
|
||||
throw x.syntaxError("Expected a ',' or ']'");
|
||||
} else if (nextChar==',' && jsonParserConfiguration.isStrictMode()) {
|
||||
throw x.syntaxError("Array content starts with a ','");
|
||||
}
|
||||
if (nextChar != ']') {
|
||||
x.back();
|
||||
|
||||
Reference in New Issue
Block a user