我对编码很陌生。我在网上看了很多例子,但似乎找不到我要找的东西。
https://data.calgary.ca/resource/k7p9-kppz.json
返回的 JSON:
[
{
":@computed_region_4a3i_ccfj": "1",
":@computed_region_4b54_tmc4": "8",
":@computed_region_kxmf_bzkv": "29",
":@computed_region_p8tp_5dkv": "5",
"description": "Glenmore Trail / 14 Street SW (West)",
"latitude": "50.9938095441965",
"location": {
"latitude": "50.9938095441965",
"longitude": "-114.094978074903",
"human_address": "{\"address\": \"\", \"city\": \"\", \"state\": \"\", \"zip\": \"\"}"
},
"longitude": "-114.094978074903",
"quadrant": "SW",
"url": {
"url": "http://trafficcam.calgary.ca/loc111.jpg"
}
},
{
":@computed_region_4a3i_ccfj": "2",
":@computed_region_4b54_tmc4": "7",
":@computed_region_kxmf_bzkv": "62",
":@computed_region_p8tp_5dkv": "7",
"description": "Memorial Drive / 9 Street NW",
"latitude": "51.0536259017801",
"location": {
"latitude": "51.0536259017801",
"longitude": "-114.081180764729",
"human_address": "{\"address\": \"\", \"city\": \"\", \"state\": \"\", \"zip\": \"\"}"
},
"longitude": "-114.081180764729",
"quadrant": "NW",
"url": {
"url": "http://trafficcam.calgary.ca/loc59.jpg"
}
},
我正在尝试获取description和url。我在获取description时没有问题,但是当我尝试获取时url,它会引发错误。
慕森王