fastJson的使用
生活随笔
收集整理的這篇文章主要介紹了
fastJson的使用
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Movie Movie=JSON.parseObject(result, Movie.class);
Toast.makeText(MainActivity.this, Movie.getDir()+Movie.getNm()+Movie.getPhotos().size(), 0).show(); 對于jsonArray,也就是先得到具體的某一個jsonarray,然后parseArray.
JSONObject object = new JSONObject(arg0); ArrayList<Book> books = (ArrayList<Book>) JSON.parseArray(object.getString("result"), Book.class);
轉(zhuǎn)載于:https://www.cnblogs.com/caoxinyu/p/6647945.html
總結(jié)
以上是生活随笔為你收集整理的fastJson的使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在河南开封的名菜套四宝 最便宜的得多少钱
- 下一篇: 【12】AngularJS 事件