fastjson
来源:互联网 发布:淘陶网络北京有限公司 编辑:程序博客网 时间:2024/04/29 15:33
public class bean {
public String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
List li=new ArrayList();
Map m=new HashMap();
m.put("id", "ad");
li.add(m);
m=new HashMap();
m.put("id", "ad");
li.add(m);
String a=JSON.toJSONString(li);
System.out.println(a);
List<bean> bean=JSON.parseArray(a,bean.class);//List<VO> list = JSON.parseObject("...", new TypeReference<List<VO>>() {});
System.out.println(bean.get(0).id);
0 0
- fastJson
- FastJson
- fastjson
- fastjson
- fastjson
- fastjson
- fastjson
- fastJson
- fastjson
- fastjson
- fastJson
- fastjson
- fastjson
- fastjson
- fastjson
- fastjson
- fastJson
- fastJSON
- Django:The translation infrastructure cannot be initialized before the apps registry is ready
- 来新公司啦!
- 中国企业家为什么越来越能说了?
- Linux下 tomcat 开机启动设置
- AVR的-section
- fastjson
- git服务器的简单搭建
- C语言:自定义函数/字符串函数
- 电容的频率特性
- mysql分页limit 优化
- [小技巧] outlook 一次下载多个附件
- 把数组排成最小的数 【微软面试100题 第六十八题】
- 数字格式化,格式数字保留2位小数点,格式数字自定义保留n位小数点
- 【重头学习Android】Android 中Activity,Window和View之间的关系