How to know the number of elements in a JSONArray?
use length() function
use length variable which will hold no of elements in that array
put infinite loop to read JSONArray, JSON library will automatically detect end of array.
none of the above.
use length() function on JSONArray object to find number of elements in it.
Back To Top