使用fastjson的parseObject方法将json字符串转换成Map 或者List
fastjson
FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
项目地址:https://gitcode.com/gh_mirrors/fastj/fastjson
免费下载资源
·
fastjson 转换成map
HashMap<String,String> map = JSON.parseObject(jsonStr,new TypeReference<HashMap<String,String>>() {});
fastjson 转换成list
List<Person> list = new ArrayList<Person>();
list = JSON.parseArray(jasonArray.toString, Person.class);
GitHub 加速计划 / fastj / fastjson
25.69 K
6.51 K
下载
FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
最近提交(Master分支:3 个月前 )
c942c834 - 1 年前
5bc4709b - 1 年前
更多推荐
已为社区贡献4条内容
所有评论(0)