kotlinx-serialization / kotlinx.serialization.json / JsonArray / getArray

getArray

(common, js, jvm, native) fun getArray(index: Int): JsonArray

Returns index-th element of an array as JsonArray

Exceptions

IndexOutOfBoundsException - if there is no element with given index

JsonException - if element has invalid type