com.alibaba.fastjson.JSONObject cannot be cast to java.lang.String
fastjson
FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
项目地址:https://gitcode.com/gh_mirrors/fastj/fastjson
免费下载资源
·
com.alibaba.fastjson.JSONObject cannot be cast to java.lang.String
//错误示例
String data=(String) parseObject.get("data");
//获取data节点
String data=String.valueOf(parseObject.get("data"));
出现这种问题是不能使用 (String)来类型转化的 而是要使用String.valueOf来转化
GitHub 加速计划 / fastj / fastjson
3
1
下载
FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
最近提交(Master分支:4 个月前 )
c942c834 - 1 年前
5bc4709b - 1 年前
更多推荐
已为社区贡献6条内容
所有评论(0)