Merge pull request #948 from Simulant87/947-JSONTokener-configuration-ignored

use JSONParserConfiguration of JSONTokener in JSONObject and JSONArray constructor instead of creating a new one
This commit is contained in:
Sean Leary
2025-01-19 09:09:42 -06:00
committed by GitHub
4 changed files with 20 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ public class JSONArray implements Iterable<Object> {
* If there is a syntax error.
*/
public JSONArray(JSONTokener x) throws JSONException {
this(x, new JSONParserConfiguration());
this(x, x.getJsonParserConfiguration());
}
/**

View File

@@ -195,7 +195,7 @@ public class JSONObject {
* duplicated key.
*/
public JSONObject(JSONTokener x) throws JSONException {
this(x, new JSONParserConfiguration());
this(x, x.getJsonParserConfiguration());
}
/**