原址:http://www.cnblogs.com/lee0oo0/archive/2013/05/08/3066371.html
- /** 將JSON字符串轉換爲JavaBean對象 **/
- User user = JSON.parseObject(text, User.class)
//轉list<T>
// 根據Bean類的到每一個json數組的項 List<AllBean> listBeans = JSON.parseArray(arr.toString(), AllBean.class);