Android : How to Create child Json Array from Parent Json Array

on Monday, September 22, 2014


i have JSON array call "jsonArray".Most of the time this array got more than 15 elements. I want to create child JSON arrays which having 5 elements for each.. Any ideas??..


Here is my current coding..but this is not working.(compile erros )



for (int i=0; i<jsonArray.length(); i++) {
jsonchildArray.put(jsonArray.getJSONObject(i));
}


PS-im new to android. so please let me know where im wrong without giving -.


0 comments:

Post a Comment