/** * 转换JSONObject * * @param list * @return */ private JSONObject parseJson(LocationIndex index) { JSONObject location = new JSONObject(); location.put("id", index.getId()); location.put("x", index.getX()); location.put("y", index.getY()); location.put("description", StringUtils.join(index.getDescription(), " ")); return location; }