kotlinx-serialization / kotlinx.serialization.json / JsonArray / getObjectOrNull

getObjectOrNull

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

Returns index-th element of an array as JsonObject or null if element is missing or has different type