diff --git a/src/main/java/org/json/JSONParserConfiguration.java b/src/main/java/org/json/JSONParserConfiguration.java index ad0d7fb72..1a17d8133 100644 --- a/src/main/java/org/json/JSONParserConfiguration.java +++ b/src/main/java/org/json/JSONParserConfiguration.java @@ -28,6 +28,10 @@ public class JSONParserConfiguration extends ParserConfiguration { */ public JSONParserConfiguration() { super(); + // TODO: Force strict mode to true, unless otherwise set by .withStrictMode() + // This will be replaced with a later change that executes test runs with and without strict mode. + // This change will cause many of the unit tests to fail. + this.strictMode = true; this.overwriteDuplicateKey = false; }