doubleOrNull

val JsonPrimitive.doubleOrNull: Double?

Returns content of current element as double or null if current element is not a valid representation of number