asDouble

Return the JSON object as double-precision floating-point number.

Return

This object as double-precision floating-point number or null if this object is not a double-precision floating-point number.

See also


open fun asDouble(def: Double): Double

Return the JSON object as double-precision floating-point number.

Return

This object as double-precision floating-point number or the provided value if this object is not a double-precision floating-point number.

Parameters

def

Value to return if the JSON object is not a double-precision floating-point number.

See also