Skip to content

Commit

Permalink
#947 use JSONParserConfiguration of JSONTokener in JSONObject and JSO…
Browse files Browse the repository at this point in the history
…NArray constructor
  • Loading branch information
Simulant87 committed Jan 15, 2025
1 parent 6631b80 commit 4c873a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/json/JSONArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public JSONArray() {
* If there is a syntax error.
*/
public JSONArray(JSONTokener x) throws JSONException {
this(x, new JSONParserConfiguration());
this(x, x.getJsonParserConfiguration());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public JSONObject(JSONObject jo, String ... names) {
* duplicated key.
*/
public JSONObject(JSONTokener x) throws JSONException {
this(x, new JSONParserConfiguration());
this(x, x.getJsonParserConfiguration());
}

/**
Expand Down

0 comments on commit 4c873a1

Please sign in to comment.