| 程序包 | 说明 |
|---|---|
| com.blade.kit.json |
| 限定符和类型 | 方法和说明 |
|---|---|
JSONArray |
JSONArray.add(boolean value)
Appends the JSON representation of the specified
boolean
value to the end of this array. |
JSONArray |
JSONArray.add(double value)
Appends the JSON representation of the specified
double
value to the end of this array. |
JSONArray |
JSONArray.add(float value)
Appends the JSON representation of the specified
float value
to the end of this array. |
JSONArray |
JSONArray.add(int value)
Appends the JSON representation of the specified
int value
to the end of this array. |
JSONArray |
JSONArray.add(JSONValue value)
Appends the specified JSON value to the end of this array.
|
JSONArray |
JSONArray.add(long value)
Appends the JSON representation of the specified
long value
to the end of this array. |
JSONArray |
JSONArray.add(Object value) |
JSONArray |
JSONArray.add(String value)
Appends the JSON representation of the specified string to the end of
this array.
|
static JSONArray |
JSON.array(Boolean... values)
Creates a new JsonArray that contains the JSON representations of the
given
boolean values. |
static JSONArray |
JSON.array(Double... values)
Creates a new JsonArray that contains the JSON representations of the
given
double values. |
static JSONArray |
JSON.array(Float... values)
Creates a new JsonArray that contains the JSON representations of the
given
float values. |
static JSONArray |
JSON.array(Integer... values)
Creates a new JsonArray that contains the JSON representations of the
given
int values. |
static JSONArray |
JSON.array(Long... values)
Creates a new JsonArray that contains the JSON representations of the
given
long values. |
static JSONArray |
JSON.array(String... strings)
Creates a new JsonArray that contains the JSON representations of the
given strings.
|
JSONArray |
JSONValue.asArray()
Returns this JSON value as
JSONArray, assuming that this value
represents a JSON array. |
JSONArray |
JSONArray.asArray() |
JSONArray |
JSONArray.remove(int index)
Removes the element at the specified index from this array.
|
JSONArray |
JSONArray.set(int index,
boolean value)
Replaces the element at the specified position in this array with the
JSON representation of the specified
boolean value. |
JSONArray |
JSONArray.set(int index,
double value)
Replaces the element at the specified position in this array with the
JSON representation of the specified
double value. |
JSONArray |
JSONArray.set(int index,
float value)
Replaces the element at the specified position in this array with the
JSON representation of the specified
float value. |
JSONArray |
JSONArray.set(int index,
int value)
Replaces the element at the specified position in this array with the
JSON representation of the specified
int value. |
JSONArray |
JSONArray.set(int index,
JSONValue value)
Replaces the element at the specified position in this array with the
specified JSON value.
|
JSONArray |
JSONArray.set(int index,
long value)
Replaces the element at the specified position in this array with the
JSON representation of the specified
long value. |
JSONArray |
JSONArray.set(int index,
String value)
Replaces the element at the specified position in this array with the
JSON representation of the specified string.
|
static JSONArray |
JSONHelper.toJSONArray(Collection<?> collection) |
static JSONArray |
JSONArray.unmodifiableArray(JSONArray array)
Returns an unmodifiable wrapper for the specified JsonArray.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Object> |
JSONHelper.jsonArrayAsList(JSONArray array) |
static Set<Object> |
JSONHelper.jsonArrayAsSet(JSONArray array) |
static JSONArray |
JSONArray.unmodifiableArray(JSONArray array)
Returns an unmodifiable wrapper for the specified JsonArray.
|
| 构造器和说明 |
|---|
JSONArray(JSONArray array)
Creates a new JsonArray with the contents of the specified JSON array.
|
Copyright © 2016. All rights reserved.