RichUtils / pyxis.uzuki.live.richutilskt.utils / org.json.JSONObject / getJSONLong

getJSONLong

@JvmOverloads fun JSONObject.getJSONLong(name: String, def: Long = 0.toLong()): Long

get Long from JSONObject

Parameters

name - name of key

def - optional, if key is not presented or some unexpected problem happened, it will be return

Return
Long object