前言
成都創(chuàng)新互聯(lián)長(zhǎng)期為上1000家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺(tái),與合作伙伴共同營(yíng)造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為七臺(tái)河企業(yè)提供專業(yè)的成都做網(wǎng)站、成都網(wǎng)站制作,七臺(tái)河網(wǎng)站改版等技術(shù)服務(wù)。擁有10多年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。本文主要跟大家介紹了關(guān)于Java用gson解析Json的相關(guān)內(nèi)容,分享出來供大家參考學(xué)習(xí),需要的朋友們下面來一起看看吧。
json數(shù)據(jù)
{ "resultcode": "200", "reason": "successed!", "result": { "sk": { "temp": "24", "wind_direction": "西南風(fēng)", "wind_strength": "2級(jí)", "humidity": "51%", "time": "10:11" }, "today": { "temperature": "16℃~27℃", "weather": "陰轉(zhuǎn)多云", "weather_id": { "fa": "02", "fb": "01" }, "wind": "西南風(fēng)3-4 級(jí)", "week": "星期四", "city": "濱州", "date_y": "2015年06月04日", "dressing_index": "舒適", "dressing_advice": "建議著長(zhǎng)袖T恤、襯衫加單褲等服裝。年老體弱者宜著針織長(zhǎng)袖襯衫、馬甲和長(zhǎng)褲。", "uv_index": "最弱", "comfort_index": "", "wash_index": "較適宜", "travel_index": "", "exercise_index": "較適宜", "drying_index": "" }, "future": [ { "temperature": "16℃~27℃", "weather": "陰轉(zhuǎn)多云", "weather_id": { "fa": "02", "fb": "01" }, "wind": "西南風(fēng)3-4 級(jí)", "week": "星期四", "date": "20150604" }, { "temperature": "20℃~32℃", "weather": "多云轉(zhuǎn)晴", "weather_id": { "fa": "01", "fb": "00" }, "wind": "西風(fēng)3-4 級(jí)", "week": "星期五", "date": "20150605" }, { "temperature": "23℃~35℃", "weather": "多云轉(zhuǎn)陰", "weather_id": { "fa": "01", "fb": "02" }, "wind": "西南風(fēng)3-4 級(jí)", "week": "星期六", "date": "20150606" }, { "temperature": "20℃~33℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "北風(fēng)微風(fēng)", "week": "星期日", "date": "20150607" }, { "temperature": "22℃~34℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "西南風(fēng)3-4 級(jí)", "week": "星期一", "date": "20150608" }, { "temperature": "22℃~33℃", "weather": "陰", "weather_id": { "fa": "02", "fb": "02" }, "wind": "西南風(fēng)3-4 級(jí)", "week": "星期二", "date": "20150609" }, { "temperature": "22℃~33℃", "weather": "多云", "weather_id": { "fa": "01", "fb": "01" }, "wind": "南風(fēng)3-4 級(jí)", "week": "星期三", "date": "20150610" } ] }, "error_code": 0 }