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

getJSONBoolean

@JvmOverloads fun JSONObject.getJSONBoolean(name: String, def: Boolean = false): Boolean

get Boolean from JSONObject

Parameters

name - name of key

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

Return
Boolean object