for(Object object : jsonArray){
String zsUrl = "";
if(surApplyZdxx.getQlsdfs().equals("2")){//正式图层ID
zsUrl = layerIdDs;
}else{
zsUrl = layerIdDx;
}
JSONObject jsonObject1 = (JSONObject) object;
jsonObject1.put("layerInfoId",zsUrl);
JSONObject jsonObject2 = (JSONObject) jsonObject1.get("properties");
Iterator<Map.Entry<String, Object>> it = jsonObject2.entrySet().iterator();
while (it.hasNext()){
Map.Entry<String, Object> next = it.next();
if(StringUtils.isBlank(next.getValue().toString())){
it.remove();
}
}
System.out.println("================="+jsonObject2);
}