| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -105,6 +105,8 @@ public JSONArray(JSONTokener x, JSONParserConfiguration jsonParserConfiguration) | |||
| 105 | 105 | if (nextChar == 0) { | |
| 106 | 106 | // array is unclosed. No ']' found, instead EOF | |
| 107 | 107 | throw x.syntaxError("Expected a ',' or ']'"); | |
| 108 | + } else if (nextChar==',' && jsonParserConfiguration.isStrictMode()) { | ||
| 109 | + throw x.syntaxError("Array content starts with a ','"); | ||
| 108 | 110 | } | |
| 109 | 111 | if (nextChar != ']') { | |
| 110 | 112 | x.back(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments