private static ArrayList<HashMap<String,String>> parseJSONpinglun(InputStream inStream) throws Exception{
byte[] data=ImageService.read(inStream); String string=new String(data); JSONArray jsonArray =new JSONArray(string); ArrayList<HashMap<String,String>> msgs=new ArrayList<HashMap<String,String>>(); for(int i=0;i<jsonArray.length();i++) { HashMap<String,String> msg=new HashMap<String,String>(); JSONObject jsonobject= jsonArray.getJSONObject(i); msg.put("userID", jsonobject.getString("userID")); msg.put("content", jsonobject.getString("content")); msg.put("date", jsonobject.getString("date")); msgs.add(msg); } return msgs; }