json - 在 Parse.com 中导入 GeoPoints 的正确 json 格式是什么?

标签 json import parse-platform geopoints

我正在尝试将数据集导入 parse.com.com,其中一列包含 GeoPoints。解析帮助显示 JSON 格式应如下所示:

{
"__type": "地理点",
“纬度”:64.124596,
“经度”:-147.86327
}

但是,当我尝试将其导入数据浏览器时,验证失败,因为 __type 似乎被视为单独的列,并且由于起始字符无效,导入失败。

有人可以帮忙将 GeoPoints 的正确 JSON 导入格式导入 Parse 吗?

最佳答案

这是如何做到的:

{ "results": [
  {
    "name":"Kfar Saba",
    "location": {"__type": "GeoPoint", "latitude": 32.18406, "longitude": 34.91731}
  },
  {
    "name":"Ar'ara BaNegev",
    "location": {"__type": "GeoPoint", "latitude": 32.5, "longitude": 35.1}
  }
}]

关于json - 在 Parse.com 中导入 GeoPoints 的正确 json 格式是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28144168/

相关文章:

java - JsonException java.lang.String 类型的值 stdClass 无法转换为 JSONObject?

python - 从 json 中删除重复项

python - 在pycharm中查找导入路径

c - 从其他不带头文件的 c 文件导入函数

file - 在 SQL Server Management Studio 中导入数据库(SQL 文件)

swift - 如何使用prepare for segue 将图像从表格单元格传输到新的 View Controller ?

android - 解析 CorodvaPush Ionic : Android doesnt show notifications when app in background

java - 不使用 LinkedHashMap 反序列化嵌套对象

ios - 从 Swift 解析查询 whereKey

json - mapstructure 如何使用鉴别器来解码具体类型