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

getJSONInt

@JvmOverloads fun JSONObject.getJSONInt(name: String, def: Int = 0): Int

get Int from JSONObject

Parameters

name - name of key

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

Return
Int object