Uses of Class
org.kordamp.json.JSONArray
Packages that use JSONArray
Package
Description
The core of the library
Testing utilities
Miscelaneous utilities
Utilities for trasforming JSON to XML and back.
-
Uses of JSONArray in org.kordamp.json
Methods in org.kordamp.json that return JSONArrayModifier and TypeMethodDescriptionprivate JSONArrayJSONArray._addValue(Object value, JsonConfig jsonConfig) Append an object value.protected JSONArrayAdds a String without performing any conversion on it.private JSONArrayJSONArray.addValue(Object value, JsonConfig jsonConfig) Append an object value.JSONArray.discard(int index) Remove an element, if present.Remove an element, if present.JSONArray.element(boolean value) Append a boolean value.JSONArray.element(double value) Append a double value.JSONArray.element(int value) Append an int value.JSONArray.element(int index, boolean value) Put or replace a boolean value in the JSONArray.JSONArray.element(int index, double value) Put or replace a double value.JSONArray.element(int index, int value) Put or replace an int value.JSONArray.element(int index, long value) Put or replace a long value.Put or replace an object value in the JSONArray.JSONArray.element(int index, Object value, JsonConfig jsonConfig) Put or replace an object value in the JSONArray.Put or replace a String value in the JSONArray.JSONArray.element(int index, String value, JsonConfig jsonConfig) Put or replace a String value in the JSONArray.JSONArray.element(int index, Collection value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.JSONArray.element(int index, Collection value, JsonConfig jsonConfig) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONArray.element(int index, Map value, JsonConfig jsonConfig) Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONArray.element(long value) Append an long value.Append an object value.JSONArray.element(Object value, JsonConfig jsonConfig) Append an object value.Append a String value.JSONArray.element(String value, JsonConfig jsonConfig) Append a String value.JSONArray.element(Collection value) Append a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.JSONArray.element(Collection value, JsonConfig jsonConfig) Append a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONArray.element(Map value, JsonConfig jsonConfig) Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.Append an JSON value.JSONArray.element(JSONObject value) Append an JSON value.static JSONArrayJSONArray.Impl.fromArray(boolean[] array, JsonConfig jsonConfig) Construct a JSONArray from an boolean[].static JSONArrayJSONArray.Impl.fromArray(byte[] array, JsonConfig jsonConfig) Construct a JSONArray from an byte[].static JSONArrayJSONArray.Impl.fromArray(char[] array, JsonConfig jsonConfig) Construct a JSONArray from an char[].static JSONArrayJSONArray.Impl.fromArray(double[] array, JsonConfig jsonConfig) Construct a JSONArray from an double[].static JSONArrayJSONArray.Impl.fromArray(float[] array, JsonConfig jsonConfig) Construct a JSONArray from an float[].static JSONArrayJSONArray.Impl.fromArray(int[] array, JsonConfig jsonConfig) Construct a JSONArray from an int[].static JSONArrayJSONArray.Impl.fromArray(long[] array, JsonConfig jsonConfig) Construct a JSONArray from an long[].static JSONArrayJSONArray.Impl.fromArray(short[] array, JsonConfig jsonConfig) Construct a JSONArray from an short[].static JSONArrayJSONArray.Impl.fromArray(Enum e, JsonConfig jsonConfig) Construct a JSONArray from an Enum value.static JSONArrayJSONArray.Impl.fromArray(Object[] array, JsonConfig jsonConfig) static JSONArrayJSONArray.Impl.fromCollection(Collection collection, JsonConfig jsonConfig) static JSONArrayJSONArray.Impl.fromJSONArray(JSONArray array, JsonConfig jsonConfig) static JSONArrayJSONArray.Impl.fromJSONString(JSONString string, JsonConfig jsonConfig) static JSONArrayJSONArray.Impl.fromJSONTokener(JSONTokener tokener, JsonConfig jsonConfig) static JSONArrayJSONArray.fromObject(Object object) Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method.static JSONArrayJSONArray.fromObject(Object object, JsonConfig jsonConfig) Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method.static JSONArrayJSONArray.Impl.fromString(String string, JsonConfig jsonConfig) JSONArray.getJSONArray(int index) Get the JSONArray associated with an index.JSONObject.getJSONArray(String key) Get the JSONArray value associated with a key.JSONObject.names()Produce a JSONArray containing the names of the elements of this JSONObject.JSONObject.names(JsonConfig jsonConfig) Produce a JSONArray containing the names of the elements of this JSONObject.JSONArray.optJSONArray(int index) Get the optional JSONArray associated with an index.JSONObject.optJSONArray(String key) Get an optional JSONArray associated with a key.JSONObject.toJSONArray(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.Methods in org.kordamp.json with parameters of type JSONArrayModifier and TypeMethodDescriptionstatic JSONArrayJSONArray.Impl.fromJSONArray(JSONArray array, JsonConfig jsonConfig) static int[]JSONArray.getDimensions(JSONArray jsonArray) Returns the number of dimensions suited for a java array.static voidJSONArray.Impl.processArrayDimensions(JSONArray jsonArray, List dims, int index) static ObjectCreates a java array from a JSONArray.static ObjectCreates a java array from a JSONArray.static ObjectCreates a java array from a JSONArray.
Any attribute is a JSONObject and matches a key in the classMap, it will be converted to that target class.
The classMap has the following conventions: Every key must be an String. Every value must be a Class. A key may be a regular expression.static ObjectJSONArray.toArray(JSONArray jsonArray, Object root, JsonConfig jsonConfig) Creates a java array from a JSONArray.static ObjectJSONArray.toArray(JSONArray jsonArray, JsonConfig jsonConfig) Creates a java array from a JSONArray.static CollectionJSONArray.toCollection(JSONArray jsonArray) Returns a List or a Set taking generics into account.static CollectionJSONArray.toCollection(JSONArray jsonArray, Class objectClass) Returns a List or a Set taking generics into account.static CollectionJSONArray.toCollection(JSONArray jsonArray, JsonConfig jsonConfig) Returns a List or a Set taking generics into account.
Contributed by [Matt Small @ WaveMaker].JSONObject.toJSONArray(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.JSONArray.toJSONObject(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static ListDeprecated.replaced by toCollectionstatic ListDeprecated.replaced by toCollectionstatic ListDeprecated.replaced by toCollectionstatic ListJSONArray.toList(JSONArray jsonArray, Object root, JsonConfig jsonConfig) Creates a List from a JSONArray.static ListJSONArray.toList(JSONArray jsonArray, JsonConfig jsonConfig) Deprecated.replaced by toCollection -
Uses of JSONArray in org.kordamp.json.test
Methods in org.kordamp.json.test with parameters of type JSONArrayModifier and TypeMethodDescriptionstatic voidJSONAssert.assertEquals(String message, String expected, JSONArray actual) Asserts that two JSONArrays are equal.static voidJSONAssert.assertEquals(String expected, JSONArray actual) Asserts that two JSONArrays are equal.static voidJSONAssert.assertEquals(String message, JSONArray expected, String actual) Asserts that two JSONArrays are equal.static voidJSONAssert.assertEquals(String message, JSONArray expected, JSONArray actual) Asserts that two JSONArrays are equal.static voidJSONAssert.assertEquals(JSONArray expected, String actual) Asserts that two JSONArrays are equal.static voidJSONAssert.assertEquals(JSONArray expected, JSONArray actual) Asserts that two JSONArrays are equal. -
Uses of JSONArray in org.kordamp.json.util
Fields in org.kordamp.json.util declared as JSONArrayModifier and TypeFieldDescriptionstatic final JSONArrayCycleDetectionStrategy.IGNORE_PROPERTY_ARRMethods in org.kordamp.json.util that return JSONArrayModifier and TypeMethodDescriptionabstract JSONArrayCycleDetectionStrategy.handleRepeatedReferenceAsArray(Object reference) Handle a repeated reference
Must return a valid JSONArray or null.CycleDetectionStrategy.LenientCycleDetectionStrategy.handleRepeatedReferenceAsArray(Object reference) CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy.handleRepeatedReferenceAsArray(Object reference) CycleDetectionStrategy.StrictCycleDetectionStrategy.handleRepeatedReferenceAsArray(Object reference) Methods in org.kordamp.json.util with parameters of type JSONArray -
Uses of JSONArray in org.kordamp.json.xml
Methods in org.kordamp.json.xml with parameters of type JSONArrayModifier and TypeMethodDescriptionprivate booleanXMLSerializer.canAutoExpand(JSONArray array) Only perform auto expansion if all children are objects.private nu.xom.ElementXMLSerializer.processJSONArray(JSONArray array, nu.xom.Element root, String[] expandableProperties) private void