Merge pull request #942 from michael-ameri/fix-clone

add missing fields when cloning JSONParserConfiguration
This commit is contained in:
Sean Leary
2025-01-19 09:06:21 -06:00
committed by GitHub
2 changed files with 24 additions and 1 deletions

View File

@@ -27,7 +27,9 @@ public class JSONParserConfiguration extends ParserConfiguration {
protected JSONParserConfiguration clone() {
JSONParserConfiguration clone = new JSONParserConfiguration();
clone.overwriteDuplicateKey = overwriteDuplicateKey;
clone.strictMode = strictMode;
clone.maxNestingDepth = maxNestingDepth;
clone.keepStrings = keepStrings;
return clone;
}