Code example for JSONArray

Methods: getBooleanisNull

0
            if (value != null) 
                array.put(index, (boolean) value); 
        } 
 
        public Boolean getValue(JSONArray array, int index) throws JSONException { 
            return array.isNull(index) ? null : array.getBoolean(index); 
        } 
    }; 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE