Skip to content

Commit 4c873a1

Browse files
committed
#947 use JSONParserConfiguration of JSONTokener in JSONObject and JSONArray constructor
1 parent 6631b80 commit 4c873a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/json/JSONArray.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public JSONArray() {
8383
* If there is a syntax error.
8484
*/
8585
public JSONArray(JSONTokener x) throws JSONException {
86-
this(x, new JSONParserConfiguration());
86+
this(x, x.getJsonParserConfiguration());
8787
}
8888

8989
/**

src/main/java/org/json/JSONObject.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public JSONObject(JSONObject jo, String ... names) {
195195
* duplicated key.
196196
*/
197197
public JSONObject(JSONTokener x) throws JSONException {
198-
this(x, new JSONParserConfiguration());
198+
this(x, x.getJsonParserConfiguration());
199199
}
200200

201201
/**

0 commit comments

Comments
 (0)