位于378的JSON中的意外标记}

时间:2017-10-07 01:29:11

标签: json

试图找出顶部.json文件返回错误的原因,而底部工作正常。 (抱歉,如果格式很糟糕,请先在这里发帖)工作代码来自GitHub,所以我对'内部工作'(mac OS)知之甚少。 TIA

{
  "regions": [
    "cville",
    "tech",
    "downtown",
    "outskirts",
    "allregions"

  ],

  "region_subregions": {
    "cville": ["tech", "downtown"],
     "allregions": ["cville", "tech", "downtown", "northcv",  "southcv", "westcv", "canecreek"]

  },
  "region_neighborhoods": {
    "southcv": ["parkview", "sink", "fairground"],    

  }
}


{
  "regions": [
    "sf",
    "eastsf",
    "centralsf",
    "westsf",
    "southsf",
    "peninsula",
    "sanjose",
    "marin",
    "eastbay",
    "sacramento",
    "allregions"
  ],
  "region_subregions": {
    "sf": ["eastsf", "centralsf", "westsf"],
    "allregions": ["eastsf", "centralsf", "westsf", "southsf", "peninsula", "sanjose", "marin", "eastbay", "sacramento"]
  },
  "region_neighborhoods": {
    "eastsf": ["embarcadero-p39-northbeach", "missionbay-dogpatch", "soma-ferry_bldg", "fidi-union_sq", "tenderloin-civic_center", "nob-russian_hill"],
    "centralsf": ["haight-castro", "mission-dolores", "fillmore-hayes_valley"],
    "westsf": ["presidio-marina", "richmond-gg_park", "sunset-", "lakeview-lake_merced"],
    "southsf": ["glen_park-twin_peaks", "ingleside-", "excelsior-portola", "outer_mission-cow_palace", "bayview-", "south_city-brisbane", "daly_city-pacifica"],
    "peninsula": ["half_moon_bay-coast", "san_bruno-burlingame", "san_mateo-foster_city", "belmont-sc-rws", "redwood_city-palo_alto", "mt-view_sunnyvale"],
    "sanjose": ["san-jose"],
    "marin": ["marin-"],
    "eastbay": ["oakland-", "berkeley-", "east-bay"],
    "sacramento": ["sacramento-"]
  }
}

1 个答案:

答案 0 :(得分:0)

由于此行尾随逗号

 "southcv": ["parkview", "sink", "fairground"],