jsonElementListOrNull

fun JsonElement.jsonElementListOrNull(vararg keys: String): List<JsonElement>?

Navigates to the nested element at keys and returns it as a list of JsonElement, or null if it is missing, JSON null, or not an array. Extension function on JsonElement.