mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-04 01:35:33 +08:00
#947 use JSONParserConfiguration of JSONTokener in JSONObject and JSONArray constructor
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -195,7 +195,7 @@ public class JSONObject {
|
||||
* duplicated key.
|
||||
*/
|
||||
public JSONObject(JSONTokener x) throws JSONException {
|
||||
this(x, new JSONParserConfiguration());
|
||||
this(x, x.getJsonParserConfiguration());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user