jsonkraken / net.jemzart.jsonkraken / JsonArray

JsonArray

class JsonArray : JsonContainer, Iterable<JsonValue>

Since
1.0 JsonValue representation for 'array'.

Constructors

<init>

JsonArray(vararg items: Any?)

json array filled with items. Each item must be of a valid type (See 'Valid Types').

JsonArray()

empty json array.

Properties

size

val size: Int

Functions

add

fun add(value: Any?): Unit

clone

fun clone(): JsonArray

get

fun get(index: Int): JsonValue

insert

fun insert(index: Int, value: Any?): Unit

isEmpty

fun isEmpty(): Boolean

iterator

fun iterator(): MutableIterator<JsonValue>

remove

fun remove(index: Int): Unit

set

fun set(index: Int, value: Any?): Unit

Inherited Functions

get

open operator fun get(key: String): JsonValue

isNotEmpty

fun isNotEmpty(): Boolean

set

open operator fun set(key: String, value: Any?): Unit