| | |
| | | JSONArray jsonArr = JSON.parseArray(substationMap.get("reason").toString()); |
| | | for(int i=0; i<jsonArr.size(); i++){ |
| | | Object element = jsonArr.get(i); |
| | | content = content + JSON.toJSONString(element) + ";"; |
| | | content = content + JSON.toJSONString(element).replace("\"","") + ";"; |
| | | } |
| | | |
| | | AlarmMessageRespDTO alarmMessageRespDTO = new AlarmMessageRespDTO(); |
| | |
| | | for(int i = 0; i < jsonArr.size(); i++) { |
| | | Object element = jsonArr.get(i); |
| | | if (element != null) { |
| | | contentBuilder.append(JSON.toJSONString(element)).append(";"); |
| | | contentBuilder.append(JSON.toJSONString(element).replace("\"","")).append(";"); |
| | | } |
| | | } |
| | | |