json文件比如下面:
[ { "name":"sheep", "age":"20" }, { "name":"monkey","age":"30" } ]
代言2016-11-08 14:53:28
fastjson一个易于使用,性能卓越的JSON处理工具:
http://www.oschina.net/p/fastjson
https://github.com/alibaba/fastjson
反序列化为JSONObject对象
String text = ...; // 例如 {"name":"张老头", "age":66} JSONObject json = JSON.parseObject(text);