optionalArray

fun JsonObject.optionalArray(key: String): JsonArray?

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