Monday, July 25, 2016

arrays - iterate through JSONArray in java

I have a JSONArray :



public JSNArray getItems() {
JSONArray listjson = new JSONArray();

JSONObject fnl_json = new JSONObject();
//adding few items to fnl_json
listjson.add(fnl_json);
return fnal_json;
}


I am calling getItems function, how can I iterate through fnl_json from the called function?

No comments:

Post a Comment