JSON依赖包,共7个
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); }
文件列表
JSON依赖包.rar
(预估有个8文件)
JSON依赖包
commons-logging-1.1.jar
52KB
commons-collections-3.2.jar
558KB
json-lib-2.2.3-jdk15.jar
145KB
Test.java
833B
commons-beanutils-1.7.0.jar
184KB
commons-lang-2.3.jar
240KB
commons-logging-1.0.jar
574KB
ezmorph-1.0.4.jar
84KB
用户评论