We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8eefc commit 686c084Copy full SHA for 686c084
src/main/java/org/json/JSONTokener.java
@@ -509,6 +509,9 @@ Object nextSimpleValue(char c) {
509
string = sb.toString().trim();
510
if ("".equals(string)) {
511
throw this.syntaxError("Missing value");
512
+ } else if (jsonParserConfiguration != null &&
513
+ jsonParserConfiguration.isStrictMode() && string.endsWith(".")) {
514
+ throw this.syntaxError(String.format("Strict mode error: Value '%s' ends with dot", string));
515
}
516
Object obj = JSONObject.stringToValue(string);
517
// if obj is a boolean, look at string
0 commit comments