alibaba.fastjson.JSONArray遍历取值
fastjson
FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
项目地址:https://gitcode.com/gh_mirrors/fastj/fastjson
免费下载资源
·
JSONArray jsonArray = (JSONArray) object.get("data");
for(int i = 0; i < jsonArray.size(); i++) {
JSONObject obj = jsonArray.getJSONObject(i);
Integer del = (Integer) obj.get("del");
String bookId = (String) obj.get("id");
if (del == 1) {
System.out.println("遍历JSONArray取值成功");
}
object.get(“data”)为我的数据源
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 年前
更多推荐
已为社区贡献9条内容
所有评论(0)