kotlinx-serialization / kotlinx.serialization.json / JsonObject / getObjectOrNull

getObjectOrNull

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

Returns JsonObject associated with given key or null if element is not present or has different type