Skip to content

Commit

Permalink
chore(#887): JSONParserConfiguration strictMode true flag cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkarth committed May 19, 2024
1 parent 48dfeb8 commit a8ab79e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/main/java/org/json/JSONParserConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/json/junit/JSONTokenerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8ab79e

Please sign in to comment.