getJsonHelper

open fun <T> getJsonHelper(jsonDetails: JSONObject, key: String): T

Method to get from JSON a jsonHelper

Return

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

Parameters

jsonDetails

: "JSON" from fetch data

key

: key of JsonHelper to get from json


open fun <T> getJsonHelper(jsonDetails: JSONObject, key: String, defValue: T): T

Method to get from JSON a jsonHelper

Return

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

Parameters

jsonDetails

: "JSON" from fetch data

key

: key of JsonHelper to get from json

defValue

: default value to return if primary value not exists


open fun <T> getJsonHelper(jsonDetails: JSONArray, index: Int): T

Method to get from JSON a jsonHelper

Return

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

Parameters

jsonDetails

: "JSON" from fetch data

index

: index of JsonHelper to get from json


open fun <T> getJsonHelper(jsonDetails: JSONArray, index: Int, defValue: T): T

Method to get from JSON a jsonHelper

Return

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

Parameters

jsonDetails

: "JSON" from fetch data

index

: index of JsonHelper to get from json

defValue

: default value to return if primary value not exists


Method to get from JSON a jsonHelper

Return

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

Parameters

key

: key of JsonHelper to get from json


open fun <T> getJsonHelper(key: String, defValue: T): T

Method to get from JSON a jsonHelper

Return

value as JsonHelper if exists, if it is not exist will return defValue as T

Parameters

key

: key of JsonHelper to get from json

defValue

: default value to return if primary value not exists


open fun getJsonHelper(index: Int): JsonHelper

Method to get from JSON a jsonHelper

Return

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

Parameters

index

: index of JsonHelper to get from json


open fun <T> getJsonHelper(index: Int, defValue: T): T

Method to get from JSON a jsonHelper

Return

value as JsonHelper if exists, if it is not exist will return defValue as T

Parameters

index

: index of JsonHelper to get from json

defValue

: default value to return if primary value not exists