kotlinx-serialization / kotlinx.serialization.json / JsonArray / getAs
getAs
(common, js, jvm, native) fun <reified J : JsonElement> getAs(index: Int): J
Returns index-th element of an array as J
Exceptions
JsonException
- if element has invalid type