optionalObject

fun JsonObject.optionalObject(key: String): JsonObject?

Returns the nested JsonObject for the given key, or null when the key is absent or the value is not an object.