RichUtils / pyxis.uzuki.live.richutilskt.utils / put

put

fun put(jsonObject: JSONObject?, name: String, value: Any): JSONObject?

put value to JSONObject

Parameters

jsonObject - target JSONObject

name - name of key

value - actual value to input

fun put(jsonArray: JSONArray?, index: Int, value: Any): JSONArray?

put value to JSONArray

Parameters

jsonArray - target JSONArray

index - index of key

value - actual value to input

fun put(jsonArray: JSONArray?, value: Any): JSONArray?

put value to JSONArray without ordering

Parameters

jsonArray - target JSONArray

value - actual value to input