| Package | Description |
|---|---|
| com.alibaba.fastjson2 | |
| com.alibaba.fastjson2.schema |
| Modifier and Type | Field and Description |
|---|---|
(package private) JSONArray |
JSONPathFilter.NameArrayOpSegment.array |
| Modifier and Type | Field and Description |
|---|---|
(package private) static ObjectReader<JSONArray> |
JSONFactory.ARRAY_READER |
(package private) static ObjectReader<JSONArray> |
JSONObject.arrayReader |
(package private) static ObjectWriter<JSONArray> |
JSONArray.arrayWriter |
| Modifier and Type | Method and Description |
|---|---|
JSONArray |
JSONArray.addArray()
|
static JSONArray |
JSONArray.copyOf(java.util.Collection collection)
Returns an
JSONArray containing the elements of the given Collection, in its iteration order. |
JSONArray |
JSONArray.fluentAdd(java.lang.Object element)
Chained addition of elements
|
JSONArray |
JSONArray.fluentAddAll(java.util.Collection<?> c)
Chained add operation that appends all of the elements in the specified collection to the end of this list.
|
JSONArray |
JSONArray.fluentClear()
Chained clear operation that removes all elements from this
JSONArray. |
JSONArray |
JSONArray.fluentRemove(int index)
Chained remove operation that removes the element at the specified position.
|
JSONArray |
JSONArray.fluentRemove(java.lang.Object o)
Chained remove operation that removes the first occurrence of the specified element.
|
JSONArray |
JSONArray.fluentRemoveAll(java.util.Collection<?> c)
Chained remove operation that removes from this list all of its elements that are contained in the specified collection.
|
JSONArray |
JSONArray.fluentSet(int index,
java.lang.Object element)
Chained set operation that replaces the element at the specified position.
|
static JSONArray |
JSONArray.from(java.lang.Object obj)
See
JSON.toJSON(java.lang.Object) for details |
static JSONArray |
JSONArray.from(java.lang.Object obj,
JSONWriter.Feature... writeFeatures)
See
JSON.toJSON(java.lang.Object) for details |
JSONArray |
JSONArray.getJSONArray(int index)
|
JSONArray |
JSONObject.getJSONArray(java.lang.String key)
Returns the
JSONArray of the associated keys in this JSONObject. |
static JSONArray |
JSONArray.of(java.lang.Object... items)
Pack multiple elements as
JSONArray |
static JSONArray |
JSONArray.of(java.lang.Object item)
Pack an element as
JSONArray |
static JSONArray |
JSONArray.of(java.lang.Object first,
java.lang.Object second)
Pack two elements as
JSONArray |
static JSONArray |
JSONArray.of(java.lang.Object first,
java.lang.Object second,
java.lang.Object third)
Pack three elements as
JSONArray |
static JSONArray |
JSONArray.parse(java.lang.String text,
JSONReader.Feature... features)
Parse JSON
String into JSONArray |
static JSONArray |
JSON.parseArray(byte[] bytes)
Parses the json byte array as a
JSONArray. |
static JSONArray |
JSONB.parseArray(byte[] jsonbBytes)
Parses JSONB bytes to a JSONArray
|
static JSONArray |
JSON.parseArray(byte[] bytes,
int offset,
int length,
java.nio.charset.Charset charset)
Parses the json byte array as a
JSONArray. |
static JSONArray |
JSON.parseArray(char[] chars)
Parses the json char array as a
JSONArray. |
static JSONArray |
JSON.parseArray(java.io.InputStream in,
java.nio.charset.Charset charset,
JSONReader.Context context)
Parses the json stream as a
JSONArray. |
static JSONArray |
JSONB.parseArray(java.io.InputStream in,
JSONReader.Context context)
Parses JSONB from an input stream to a JSONArray using the specified context
|
static JSONArray |
JSON.parseArray(java.io.InputStream in,
JSONReader.Feature... features)
Parses the json stream as a
JSONArray. |
static JSONArray |
JSON.parseArray(java.io.Reader input,
JSONReader.Feature... features)
Parses the json reader as a
JSONArray. |
static JSONArray |
JSON.parseArray(java.lang.String text)
Parses the json string as a
JSONArray. |
static JSONArray |
JSON.parseArray(java.lang.String text,
JSONReader.Feature... features)
Parses the json string as a
JSONArray. |
static JSONArray |
JSONArray.parseArray(java.lang.String text,
JSONReader.Feature... features)
Parse JSON
String into JSONArray |
static JSONArray |
JSON.parseArray(java.net.URL url,
JSONReader.Feature... features)
Parses the json stream of the url as a
JSONArray. |
JSONArray |
JSONObject.putArray(java.lang.String name)
Creates and puts a new JSONArray with the specified name.
|
JSONArray |
JSONReader.readJSONArray()
Reads a JSON array and returns it as a JSONArray.
|
| Modifier and Type | Method and Description |
|---|---|
T |
TypeReference.to(JSONArray array)
See
to(Type) for details |
T |
TypeReference.toJavaObject(JSONArray array)
Deprecated.
since 2.0.4, please use
TypeReference.to(JSONArray) |
| Constructor and Description |
|---|
NameArrayOpSegment(java.lang.String fieldName,
long fieldNameNameHash,
java.lang.String[] fieldName2,
long[] fieldNameNameHash2,
java.util.function.Function function,
JSONPathFilter.Operator operator,
JSONArray array) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static AnyOf |
JSONSchema.anyOf(JSONArray array,
java.lang.Class type) |
(package private) static JSONSchema[] |
JSONSchema.makeSchemaItems(JSONArray array,
java.lang.Class type) |
(package private) static OneOf |
JSONSchema.oneOf(JSONArray array,
java.lang.Class type) |