判断json对象时JSONArray还是JSONObject

判断json对象时JSONArray还是JSONObject

使用的fastjson

Object object = js.get("guid");
 if (object instanceof JSONArray) {
    System.out.println("JSONArray");
}else{
    System.out.println("JSONObject");
}
原文地址:https://www.cnblogs.com/baby123/p/14029354.html