diff --git a/src/main/java/org/json/JSONParserConfiguration.java b/src/main/java/org/json/JSONParserConfiguration.java index 1a17d8133..ad0d7fb72 100644 --- a/src/main/java/org/json/JSONParserConfiguration.java +++ b/src/main/java/org/json/JSONParserConfiguration.java @@ -28,10 +28,6 @@ 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; } diff --git a/src/test/java/org/json/junit/JSONTokenerTest.java b/src/test/java/org/json/junit/JSONTokenerTest.java index ba0732353..59ca6d8f6 100644 --- a/src/test/java/org/json/junit/JSONTokenerTest.java +++ b/src/test/java/org/json/junit/JSONTokenerTest.java @@ -98,8 +98,7 @@ public void testValid() { checkValid(" [] ",JSONArray.class); checkValid("[1,2]",JSONArray.class); checkValid("\n\n[1,2]\n\n",JSONArray.class); - // TODO: strictMode regression, needs to be fixed - // checkValid("1 2", String.class); + checkValid("1 2", String.class); } @Test