mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
docs(#871-strictMode): JSONArray constructor JavaDoc update
This commit is contained in:
parent
e67abb3842
commit
c51efe8b08
@ -85,10 +85,12 @@ public class JSONArray implements Iterable<Object> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a JSONArray from a JSONTokener.
|
* Constructs a JSONArray from a JSONTokener and a JSONParserConfiguration.
|
||||||
|
* JSONParserConfiguration contains strictMode turned off (false) by default.
|
||||||
*
|
*
|
||||||
* @param x A JSONTokener
|
* @param x A JSONTokener instance from which the JSONArray is constructed.
|
||||||
* @throws JSONException If there is a syntax error.
|
* @param jsonParserConfiguration A JSONParserConfiguration instance that controls the behavior of the parser.
|
||||||
|
* @throws JSONException If a syntax error occurs during the construction of the JSONArray.
|
||||||
*/
|
*/
|
||||||
public JSONArray(JSONTokener x, JSONParserConfiguration jsonParserConfiguration) throws JSONException {
|
public JSONArray(JSONTokener x, JSONParserConfiguration jsonParserConfiguration) throws JSONException {
|
||||||
this();
|
this();
|
||||||
@ -103,7 +105,7 @@ public class JSONArray implements Iterable<Object> {
|
|||||||
}
|
}
|
||||||
if (nextChar != ']') {
|
if (nextChar != ']') {
|
||||||
x.back();
|
x.back();
|
||||||
for (;;) {
|
for (; ; ) {
|
||||||
if (x.nextClean() == ',') {
|
if (x.nextClean() == ',') {
|
||||||
x.back();
|
x.back();
|
||||||
this.myArrayList.add(JSONObject.NULL);
|
this.myArrayList.add(JSONObject.NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user