Skip to content

Commit d2cb38d

Browse files
author
rikkarth
committed
feat(stleary#871-strictMode): added ORIGINAL implementation to JSONParserConfiguration
1 parent 4929fc9 commit d2cb38d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
* Configuration object for the JSON parser. The configuration is immutable.
55
*/
66
public class JSONParserConfiguration extends ParserConfiguration {
7+
8+
/** Original Configuration of the JSON Parser. */
9+
public static final JSONParserConfiguration ORIGINAL
10+
= new JSONParserConfiguration();
11+
12+
/** Original configuration of the JSON Parser except that values are kept as strings. */
13+
public static final JSONParserConfiguration KEEP_STRINGS
14+
= new JSONParserConfiguration().withKeepStrings(true);
15+
716
/**
817
* Used to indicate whether to overwrite duplicate key or not.
918
*/

0 commit comments

Comments
 (0)