asLong

open fun asLong(): Long

Return the JSON object as long integer.

Return

This object as long integer or null if this object is not a long integer.

See also


open fun asLong(def: Long): Long

Return the JSON object as long integer.

Return

This object as long integer or the provided value if this object is not a long integer.

Parameters

def

Value to return if the JSON object is not a long integer.

See also