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) JSONArray.fluentClear()JSONArray.fluentRemove(int index) JSONArray.fluentRemove(Object o) JSONArray.fluentRemoveAll(Collection<?> c) 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(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) static JSONArrayJSONB.parseArray(InputStream in, JSONReader.Context context) final JSONArrayJSONReader.readJSONArray()Methods in com.alibaba.fastjson2 with parameters of type JSONArray
TypeReference.to(JSONArray)