Skip to content

Commit 4319b71

Browse files
Sean LearySean Leary
Sean Leary
authored and
Sean Leary
committed
force strict mode to expose failing tests
1 parent 1e3f37b commit 4319b71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/json/JSONParserConfiguration.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public class JSONParserConfiguration extends ParserConfiguration {
2828
*/
2929
public JSONParserConfiguration() {
3030
super();
31+
// TODO: Force strict mode to true, unless otherwise set by .withStrictMode()
32+
// This will be replaced with a later change that executes test runs with and without strict mode.
33+
// This change will cause many of the unit tests to fail.
34+
this.strictMode = true;
3135
this.overwriteDuplicateKey = false;
3236
}
3337

0 commit comments

Comments
 (0)