JSON依赖包,共7个,含示范代码 ,介绍比较全面,如:String json = "{\"doctype\":\"cy\",\"title\":\"重庆\",\"used\":\"商务宴请\"}"; JSONObject jsonObject = JSONObject.fromObject(json); JSONObject resultJSON = JSONObject.fromObject(jsonObject); Map map = (Map)JSONObject.toBean(resultJSON, Map.class); Iterator it=map.entrySet().iterator(); while(it.hasNext()){ Map.Entry m = (Map.Entry) it.next(); String key=(String)m.getKey(); String value =(String) m.getValue(); System.out.println(key+":"+value); }