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

getJSONDouble

@JvmOverloads fun JSONObject.getJSONDouble(name: String, def: Double = 0.toDouble()): Double

get Double from JSONObject

Parameters

name - name of key

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

Return
Double object