判断json对象时JSONArray还是JSONObject
使用的fastjson
Object object = js.get("guid");
if (object instanceof JSONArray) {
System.out.println("JSONArray");
}else{
System.out.println("JSONObject");
}
判断json对象时JSONArray还是JSONObject
使用的fastjson
Object object = js.get("guid");
if (object instanceof JSONArray) {
System.out.println("JSONArray");
}else{
System.out.println("JSONObject");
}
本文由 用户 于 2023-09-22 发布在 夸智网,如有疑问,请联系我们。
本文链接:https://www.kuazhi.com/post/576202.html
发表评论