I'm curious if there's a syntactic way to extend JSONArray such that I can then use it in a for(:) loop as I can a List.
So, instead of having to do:
for(int i = 0; i< myJsonArray.length(); i++){
myJsonArray.getString(i);
}
I would like to do
for(String s : myJsonArray);
I realize that I need to make sure that in the above example the object in the array is indeed a String, but given that JSONArrays can only handle a few types that shouldn't be problem.