#947 use JSONParserConfiguration of JSONTokener in JSONObject and JSONArray constructor

This commit is contained in:
Simulant 2025-01-15 21:41:01 +01:00
parent 6631b80e8f
commit 4c873a1db4
2 changed files with 2 additions and 2 deletions

View File

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