Reference+
Name
append()
Class
JSONArray
Description
Appends a new value to the JSONArray, increasing the array's length by one. New values may be of the following types: int, float, String, boolean, JSONObject, or JSONArray.
Syntax
- .append(value)
Parameters
- value- (String, int, float, boolean, JSONArray, JSONObject)a String value
- value- (int, JSONObject, float, boolean, JSONArray)an int value
- value- (float, JSONObject, JSONArray, boolean)a float value
- value- (boolean, JSONObject, JSONArray)a boolean value
- value- (JSONArray, JSONObject, boolean)a JSONArray value
- value- (JSONObject, JSONArray, boolean)a JSONObject value
Return
- JSONArray

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.