JSONArray
JSON array. Can contain any JSONElements.
Functions
Link copied to clipboard
Link copied to clipboard
Adds a JSONElement to the array.
Link copied to clipboard
Attaches a JSONArrayListener to this JSONArray.
Link copied to clipboard
Is the given JSONElement in the array?
Link copied to clipboard
fun findAncestor(type: KClass<out JSONElement>, predicate: (JSONElement) -> Boolean = {true}): JSONElement?
Finds the first ancestor of the current JSONElement whose class matches type and which verifies a predicate.
Link copied to clipboard
Gets the JSONElement at the given index.
Link copied to clipboard
Returns a List of all the JSONElements contained in the array.
Link copied to clipboard
Removes a JSONElement from the array.
Link copied to clipboard
Removes and returns the JSONElement from the position index.
Link copied to clipboard
Removes a JSONArrayListener from this JSONArray.
Link copied to clipboard
Replaces a JSONElement with a new element.
Link copied to clipboard
Sets the array JSONElement at the given index.
Properties
Link copied to clipboard
The number of JSONElements in the array.