因为我map.get("children")是object所以要先用JSON.toJSONString()来转为JSON类型来处理,如果是JSON的就可以直接传
JSONArray array = net.sf.json.JSONArray.fromObject(JSON.toJSONString(map.get("children")));
List<Map<String, Object>> mapListJson = (List<Map<String, Object>>) array;
因为我map.get("children")是object所以要先用JSON.toJSONString()来转为JSON类型来处理,如果是JSON的就可以直接传
JSONArray array = net.sf.json.JSONArray.fromObject(JSON.toJSONString(map.get("children")));
List<Map<String, Object>> mapListJson = (List<Map<String, Object>>) array;