mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +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.
|
* 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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user