I can\'t get the array length of the JSON array. when I using length(); method it is not working, it show as red underline in Netbeans
this is the source code
The JSONArray.length() returns the number of elements in the JSONObject contained in the Array. Not the size of the array itself.