requiredObject

fun JsonObject.requiredObject(key: String): JsonObject

Returns the nested JsonObject for the given key, or throws SerializationException if the key is missing or not an object.