kotlinx-serialization / kotlinx.serialization.json / JsonObject / getObject

getObject

(common, js, jvm, native) fun getObject(key: String): JsonObject

Returns JsonObject associated with given key

Exceptions

NoSuchElementException - if element is not present

JsonException - if element is present, but has invalid type