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

getJSONBoolean

@JvmOverloads fun JSONArray.getJSONBoolean(index: Int, def: Boolean = false): Boolean

get Boolean from JSONArray

Parameters

index - index of key

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

Return
Boolean object