0
如何從以下 使用此URL解析代碼的messge,calctime,市,ID,國家名稱檢測天氣:http://openweathermap.org/data/2.1/forecast/city/524901
使用JSON解析
{ "cod":"200","message":"kf","calctime":0.0342,"url":"http:\/\/openweathermap.org\/city\/524901",
"city":
{
"id":524901,
"coord":
{
"lon":37.615555,"lat":55.75222
},
"country":"RU","name":"Moscow","dt_calc":1356948005,"stations_count":6
},
請看我的回答,它會解決你的問題。 –