【发布时间】:2014-02-03 10:46:29
【问题描述】:
我有一张这张地图:
HashMap<LatLng,ArrayList<String>> dictionary = new HashMap<LatLng,ArrayList<String>>() ;
我正在尝试使用这样的杰克逊以 JSON 格式将其刷新到磁盘:
ObjectMapper mapper = new ObjectMapper();
mapper.writeValue(new File(MyApplication.getOfflineData()+"/Dictionary.json"), dictionary);
json 文件是这样写的:
"lat/lng: (39.151783,20.97455)": [
"/mnt/sdcard/Android/data/example.perifereia_hpeirou/files/lala/photos/pic1.nomedia",
"/mnt/sdcard/Android/data/example.perifereia_hpeirou/files/lala/photos/pic2.nomedia",
"/mnt/sdcard/Android/data/example.perifereia_hpeirou/files/lala/photos/pic3.nomedia",
"/mnt/sdcard/Android/data/example.perifereia_hpeirou/files/lala/photos/pic4.nomedia"
]
我认为这是不正确的。我认为“纬度/经度”:不应该存在,我该如何纠正这个? 感谢您的宝贵时间。
【问题讨论】:
-
你能展示你的 LatLng 课程吗?