json - all the names are not fetching from arraylist -
json file show on arraylist, want show names arraylist json file.
try { jsonarray root = new jsonarray(json); (int = 0; < root.length(); i++) { jsonobject att = (jsonobject) root.getjsonobject(i); name = att.getstring("nm"); list.add(name); } for(int = 0; i<root.length(); i++){ log.i("name", name); } }catch (jsonexception e) { e.printstacktrace(); }
try{ jsonarray root = new jsonarray(json); (int = 0; < root.length(); i++){ jsonobject att = (jsonobject) root.getjsonobject(i); name = att.getstring("nm"); list.add(name); } for(int j = 0; j<feedlist.size(); j++){ log.i("name",feedlist.get(j)); } }catch (jsonexception e) { e.printstacktrace(); }
Comments
Post a Comment