Monday 25 July 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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...