kotlinx-serialization / kotlinx.serialization.json / JsonArray / getObject

getObject

(common, js, jvm, native) fun getObject(index: Int): JsonObject

Returns index-th element of an array as JsonObject

Exceptions

IndexOutOfBoundsException - if there is no element with given index

JsonException - if element has invalid type