コード例 #1
0
ファイル: LeafletController.java プロジェクト: Jinngoo/Temp
 /**
  * 转换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;
 }