From 4319b7193477bad9d183628748da77c6d28567ce Mon Sep 17 00:00:00 2001 From: Sean Leary Date: Sun, 28 Apr 2024 10:37:36 -0500 Subject: [PATCH] force strict mode to expose failing tests --- src/main/java/org/json/JSONParserConfiguration.java | 4 ++++ 1 file changed, 4 insertions(+) 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; }