| Modifier and Type | Method and Description |
|---|---|
protected JSONParserConfiguration |
JSONParserConfiguration.clone() |
JSONParserConfiguration |
JSONTokener.getJsonParserConfiguration()
Getter
|
JSONParserConfiguration |
JSONParserConfiguration.withMaxNestingDepth(int maxNestingDepth)
Defines the maximum nesting depth that the parser will descend before throwing an exception
when parsing a map into JSONObject or parsing a
Collection instance into
JSONArray. |
JSONParserConfiguration |
JSONParserConfiguration.withOverwriteDuplicateKey(boolean overwriteDuplicateKey)
Controls the parser's behavior when meeting duplicate keys.
|
JSONParserConfiguration |
JSONParserConfiguration.withStrictMode()
Sets the strict mode configuration for the JSON parser with default true value
|
JSONParserConfiguration |
JSONParserConfiguration.withStrictMode(boolean mode)
Sets the strict mode configuration for the JSON parser.
|
| Modifier and Type | Method and Description |
|---|---|
JSONArray |
JSONArray.put(int index,
Map<?,?> value,
JSONParserConfiguration jsonParserConfiguration)
Put a value in the JSONArray, where the value will be a JSONObject that
is produced from a Map.
|
void |
JSONTokener.setJsonParserConfiguration(JSONParserConfiguration jsonParserConfiguration)
Setter
|
| Constructor and Description |
|---|
JSONArray(Collection<?> collection,
JSONParserConfiguration jsonParserConfiguration)
Construct a JSONArray from a Collection.
|
JSONArray(JSONTokener x,
JSONParserConfiguration jsonParserConfiguration)
Constructs a JSONArray from a JSONTokener and a JSONParserConfiguration.
|
JSONArray(String source,
JSONParserConfiguration jsonParserConfiguration)
Construct a JSONArray from a source JSON text.
|
JSONObject(JSONTokener x,
JSONParserConfiguration jsonParserConfiguration)
Construct a JSONObject from a JSONTokener with custom json parse configurations.
|
JSONObject(Map<?,?> m,
JSONParserConfiguration jsonParserConfiguration)
Construct a JSONObject from a Map with custom json parse configurations.
|
JSONObject(String source,
JSONParserConfiguration jsonParserConfiguration)
Construct a JSONObject from a source JSON text string with custom json parse configurations.
|
Copyright © 2025. All rights reserved.