7

Error parsing JSON array in Java/Android

view full story
linux-howto

http://stackoverflow.com – I have recently settup a php page on my server that runs through my database and outputs this onto the page. JSONObject json = JSONfunctions.getJSONfromURL("http://abc.com/getjson.php"); try{ JSONArray myArray = json.getJSONArray("date"); for(int i=0;i<myArray.length();i++){ HashMap<String, String> map = new HashMap<String, String>(); JSONObject e = myArray.getJSONObject(i); map.put("id", String.valueOf(i)); map.put("date", "date name:" + e.getString (HowTos)