remove

open fun remove(location: Int): Json

Remove an element at a location.

Return

The removed object.

Parameters

location

Index of the object to remove.

Throws

The JSON array is not mutable.


open fun remove(@Nullable object: Any): Boolean

Remove an element.

Return

Whether the object was found in the JSON array and removed.

Parameters

object

Object to remove.

Throws

The JSON array is not mutable.


open fun remove(location: Int, count: Int)

Remove an element at a location.

Parameters

location

Index of the object to remove.

count

Number of items to remove.

Throws