1063-option-3 parserConfig set max len

This commit is contained in:
Sean Leary
2026-07-13 15:33:12 -05:00
parent 1efb5f6c43
commit 90563eb877
5 changed files with 191 additions and 57 deletions
+1 -1
View File
@@ -513,7 +513,7 @@ public class JSONTokener {
jsonParserConfiguration.isStrictMode() && string.endsWith(".")) {
throw this.syntaxError(String.format("Strict mode error: Value '%s' ends with dot", string));
}
Object obj = JSONObject.stringToValue(string);
Object obj = JSONObject.stringToValue(string, jsonParserConfiguration);
// if obj is a boolean, look at string
if (jsonParserConfiguration != null &&
jsonParserConfiguration.isStrictMode()) {