doubleValueOrNull

fun JsonElement.doubleValueOrNull(vararg keys: String): Double?

Navigates to the nested element at keys and returns its double value, or null if not found. Extension function on JsonElement.