天天看點

JSON-lib的使用

JSON-lib包總結使用如下:

1,一切的String,map,List,bean,array都可以通過JSONObject.fromObject(Object o)或者JSONArray.fromObject(Object o)來轉換成一個JSONObjec或者JSONArray對象,。

2,從JSONObject循環用getJSONObject或者getJSONArray再次擷取JSONObject和JSONArray對象

詳細使用文章http://blog.csdn.net/douxiaoning1987/article/details/9170199