-2
我不知道如何從一個網站解析JSON數據。
{
"weather": {
"curren_weather": [
{
"humidity": "54",
"pressure": "1011",
"temp": "50",
"temp_unit": "f",
"weather_code": "1",
"weather_text": "Partly cloudy",
"wind": [
{
"dir": "W",
"speed": "9",
"wind_unit": "kph"
}
]
}
],
所有我想要做的就是存放「TEMP」和「weather_text」變量在標籤中使用或任何在我的應用程序NSString的...
實際請求的URL是一樣的東西:http://www.myweather2.com/developer/forecast.ashx?uac=(access-key)&output=json&query=(latitude,longitude)&temp_unit=f
有關如何完成此任何想法?
你做過任何研究嗎?每種語言都有大量的JSON庫。 – Ryan
你想用什麼語言解析JSON? Javascript/C#等... –
我總是做研究之前發佈在這裏,我嘗試了以下countlss教程,但無濟於事,我不知道我在做什麼錯了。那就是我來這裏的原因。 –