Properties properties = new Properties();
properties.load(propsIn);
JSONObject responseJson = new JSONObject();
JSONArray springBatchServersJson = new JSONArray();
List<? extends String> springBatchServers = Arrays.asList(properties.getProperty("springBatchServerList").split(","));
springBatchServersJson.addAll(springBatchServers);
responseJson.put("springBatchServerList", springBatchServersJson);
String res = "success";
httpServletResponse.getWriter().println(responseJson.toJSONString());
}