判断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
原文:https://www.cnblogs.com/baby123/p/14029354.html