更新时间:2022-02-13 22:44:18
您的JSON字符串格式不正确:center
的类型是无效对象的数组.在longitude
和latitude
周围的JSON字符串中将[
和]
替换为{
和}
,这样它们将成为对象:
Your JSON string is malformed: the type of center
is an array of invalid objects. Replace [
and ]
with {
and }
in the JSON string around longitude
and latitude
so they will be objects:
[
{
"name" : "New York",
"number" : "732921",
"center" : {
"latitude" : 38.895111,
"longitude" : -77.036667
}
},
{
"name" : "San Francisco",
"number" : "298732",
"center" : {
"latitude" : 37.783333,
"longitude" : -122.416667
}
}
]