getJSONArray

open fun getJSONArray(key: String): JSONArray

Method to get from JSONObject a list of values

Return

value as JSONArray, if it is not exist will return null value

Parameters

key

: key of JSONArray to get from json

Throws

: when this exception has been trowed will be returned null as default value


open fun getJSONArray(key: String, defValue: JSONArray): JSONArray

Method to get from JSONObject a list of values

Return

value as JSONArray, if it is not exist will return defValue

Parameters

key

: key of JSONArray to get from json

defValue

: default value to return if primary value not exists

Throws

: when this exception has been trowed will be returned null as default value


open fun getJSONArray(jsonDetails: JSONObject, key: String): JSONArray

Method to get from JSONObject a list of values

Return

value as JSONArray, if it is not exist will return null value

Parameters

jsonDetails

: "JSON" from fetch data

key

: key of JSONArray to get from json

Throws

: when this exception has been trowed will be returned null as default value


open fun getJSONArray(jsonDetails: JSONObject, key: String, defValue: JSONArray): JSONArray

Method to get from JSONObject a list of values

Return

value as JSONArray, if it is not exist will return defValue

Parameters

jsonDetails

: "JSON" from fetch data

key

: key of JSONArray to get from json

defValue

: default value to return if primary value not exists

Throws

: when this exception has been trowed will be returned null as default value


open fun getJSONArray(index: Int): JSONArray

Method to get from JSONArray a list of values

Return

value as JSONArray, if it is not exist will return null value

Parameters

index

: index of JSONArray to get from json


open fun getJSONArray(index: Int, defValue: JSONArray): JSONArray

Method to get from JSONArray a list of values

Return

value as JSONArray, if it is not exist will return defValue

Parameters

index

: index of JSONArray to get from json

defValue

: default value to return if primary value not exists


open fun getJSONArray(jsonDetails: JSONArray, index: Int): JSONArray

Method to get from JSONArray a list of values

Return

value as JSONArray, if it is not exist will return null value

Parameters

jsonDetails

: "JSON" from fetch data

index

: index of JSONArray to get from json


open fun getJSONArray(jsonDetails: JSONArray, index: Int, defValue: JSONArray): JSONArray

Method to get from JSONArray a list of values

Return

value as JSONArray, if it is not exist will return defValue

Parameters

jsonDetails

: "JSON" from fetch data

index

: index of JSONArray to get from json

defValue

: default value to return if primary value not exists