Code example for JSONArray

Methods: lengthput

0
        } 
    } 
     
    static public void append(JSONArray a, JSONObject element) {
        try { 
            a.put(a.length(), element);
        } catch (JSONException e) {
        } 
    } 
     
    static public void append(JSONArray a, Object element) {
        try { 
            a.put(a.length(), element);
        } catch (JSONException e) {
        } 
    } 
     
    static public void append(JSONArray a, int element) {
        try { 
            a.put(a.length(), element);
Stop searching for code, let great code find you!  Add Codota to your java IDE