Skip to content

Commit

Permalink
force strict mode to expose failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Leary authored and Sean Leary committed Apr 28, 2024
1 parent 1e3f37b commit 4319b71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/json/JSONParserConfiguration.java
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4319b71

Please sign in to comment.