json用来在客户端和服务器端之间传输数据很是简洁和方便,但是如果客户端传输的是对象数组的话,得做如下的处理: JSONArray testJSONArray=JSONArray.fromObject(testArrayStr); Collection testArray=JSONArray.toCollection(testJSONArray); if(testArray!=null && !testArray.isEmpty()) { Iterator it=testArray.iterator(); while(it.hasNext()) { JSONObject testJSONObj=JSONObject.fromObject(it.next()); Test test=(Test) JSONObject.toBean(testJSONObj,Test.class); ... } } JSON包下载 http://sourceforge.net/projects/json-lib/