Uses of Class
com.alibaba.fastjson2.JSONArray
Packages that use JSONArray
-
Uses of JSONArray in com.alibaba.fastjson2
Methods in com.alibaba.fastjson2 that return JSONArrayModifier and TypeMethodDescriptionJSONArray.addArray()static JSONArrayJSONArray.copyOf(Collection collection) Returns anJSONArraycontaining the elements of the given Collection, in its iteration order.Chained addition of elementsJSONArray.fluentAddAll(Collection<?> c) Chained add operation that appends all of the elements in the specified collection to the end of this list.JSONArray.fluentClear()Chained clear operation that removes all elements from thisJSONArray.JSONArray.fluentRemove(int index) Chained remove operation that removes the element at the specified position.JSONArray.fluentRemove(Object o) Chained remove operation that removes the first occurrence of the specified element.JSONArray.fluentRemoveAll(Collection<?> c) Chained remove operation that removes from this list all of its elements that are contained in the specified collection.Chained set operation that replaces the element at the specified position.static JSONArraySeeJSON.toJSON(java.lang.Object)for detailsstatic JSONArrayJSONArray.from(Object obj, JSONWriter.Feature... writeFeatures) SeeJSON.toJSON(java.lang.Object)for detailsJSONArray.getJSONArray(int index) JSONObject.getJSONArray(String key) Returns theJSONArrayof the associated keys in thisJSONObject.static JSONArrayPack an element asJSONArraystatic JSONArrayPack multiple elements asJSONArraystatic JSONArrayPack two elements asJSONArraystatic JSONArrayPack three elements asJSONArraystatic JSONArrayJSONArray.parse(String text, JSONReader.Feature... features) static JSONArrayJSON.parseArray(byte[] bytes) Parses the json byte array as aJSONArray.static JSONArrayJSON.parseArray(byte[] bytes, int offset, int length, Charset charset) Parses the json byte array as aJSONArray.static JSONArrayJSON.parseArray(char[] chars) Parses the json char array as aJSONArray.static JSONArrayJSON.parseArray(InputStream in, JSONReader.Feature... features) Parses the json stream as aJSONArray.static JSONArrayJSON.parseArray(InputStream in, Charset charset, JSONReader.Context context) Parses the json stream as aJSONArray.static JSONArrayJSON.parseArray(Reader input, JSONReader.Feature... features) Parses the json reader as aJSONArray.static JSONArrayJSON.parseArray(String text) Parses the json string as aJSONArray.static JSONArrayJSON.parseArray(String text, JSONReader.Feature... features) Parses the json string as aJSONArray.static JSONArrayJSON.parseArray(URL url, JSONReader.Feature... features) Parses the json stream of the url as aJSONArray.static JSONArrayJSONArray.parseArray(String text, JSONReader.Feature... features) static JSONArrayJSONB.parseArray(byte[] jsonbBytes) Parses JSONB bytes to a JSONArraystatic JSONArrayJSONB.parseArray(InputStream in, JSONReader.Context context) Parses JSONB from an input stream to a JSONArray using the specified contextCreates and puts a new JSONArray with the specified name.final JSONArrayJSONReader.readJSONArray()Reads a JSON array and returns it as a JSONArray.Methods in com.alibaba.fastjson2 with parameters of type JSONArray
TypeReference.to(JSONArray)