Code example for JSONArray

Methods: lengthput

0
        } 
    } 
     
    static public void append(JSONArray a, long element) {
        try { 
            a.put(a.length(), element);
        } catch (JSONException e) {
        } 
    } 
     
    static public void append(JSONArray a, double element) {
        try { 
            a.put(a.length(), element);
        } catch (JSONException e) {
        } 
    } 
     
    static public void append(JSONArray a, boolean element) {
        try { 
            a.put(a.length(), element);
Connect your IDE to all the code out there  Get Codota for Java