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

getJSONDouble

@JvmOverloads fun JSONArray.getJSONDouble(index: Int, def: Double = 0.toDouble()): Double

get Double from JSONArray

Parameters

index - index of key

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

Return
Double object