json处理

JSONObject jsonObject = new JSONObject();
map = alarmService.selectAlarmLiveIssue(endDate, taskDays,eci, issuetype);

jsonObject.putAll(map, JsonObjectDefaultNullConfig.getInstance());

HandAppUtils.returnResult(res, "success", "0", "操作成功", jsonObject);

logger.info("\r\n\r\n告警分析-告警与性能指标关联分析图:" + (System.currentTimeMillis() - start_time) / 1000 + " 秒。\r\n");

 catch (Exception e) {
			e.printStackTrace();
			HandAppUtils.returnResult(res, "error", "1", "获取数据失败!", jsonObject);
			return;
		}

  

posted on 2019-09-06 15:50  tanada  阅读(192)  评论(0编辑  收藏  举报