jsonObjectValueOrNull

fun JsonElement.jsonObjectValueOrNull(vararg keys: String): JsonObject?

Navigates to the nested element at keys and returns it as a JsonObject, or null if not found. Extension function on JsonElement.