构造方法1:
public JSONArray() {
this.list = new ArrayList();
}
构造方法2:
public JSONArray(List<Object> list) {
if (list == null) {
throw new IllegalArgumentException("list is null.");
} else {
this.list = list;
}
}
构造方法3:
public JSONArray(int initialCapacity) {
this.list = new ArrayList(initialCapacity);
}