feat(#871-strictMode): added ORIGINAL implementation to JSONParserConfiguration

This commit is contained in:
rikkarth 2024-03-30 10:26:44 +00:00
parent 4929fc99c1
commit d2cb38dba7
No known key found for this signature in database
GPG Key ID: 11E5F28B0AED6AC7

View File

@ -4,6 +4,15 @@ package org.json;
* Configuration object for the JSON parser. The configuration is immutable. * Configuration object for the JSON parser. The configuration is immutable.
*/ */
public class JSONParserConfiguration extends ParserConfiguration { public class JSONParserConfiguration extends ParserConfiguration {
/** Original Configuration of the JSON Parser. */
public static final JSONParserConfiguration ORIGINAL
= new JSONParserConfiguration();
/** Original configuration of the JSON Parser except that values are kept as strings. */
public static final JSONParserConfiguration KEEP_STRINGS
= new JSONParserConfiguration().withKeepStrings(true);
/** /**
* Used to indicate whether to overwrite duplicate key or not. * Used to indicate whether to overwrite duplicate key or not.
*/ */