2017-10-07 56 views
0

試圖找出爲什麼頂部.json文件在底部正常工作時返回錯誤。 (對不起,如果格式很糟糕,首先在這裏發佈)工作代碼來自GitHub,所以我沒有太多關於'內部工作'(mac OS)的知識。 TIAJSON在位置378的意外標記}

{ 
    "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-"] 
    } 
} 
+0

http://jsonlint.com是診斷這類東西是有用的。 – Rob

回答

0

這是由於後面的逗號在這條線

"southcv": ["parkview", "sink", "fairground"], 
相關問題