kotlinx-serialization / kotlinx.serialization.json / JsonObject / getAs
getAs
(common, js, jvm, native) fun <reified J : JsonElement> getAs(key: String): J
Returns J associated with given key
Exceptions
NoSuchElementException - if element is not present
JsonException - if element is present, but has invalid type