Unity5質問スレat GAMEDEVUnity5質問スレ - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト836:名前は開発中のものです。 15/09/27 23:00:51.93 ECJbSCCG.net >>835 API見たmain直下のwetherは "weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}], となってるから wetherはArray扱い、MINIJsonが自分の知っているものなら List<object> wether =(List<object>) main["whether"]; で取り出すとwetherの中身はDictionaryのリストになってるはず っていうかこういうときのデバッグは object wether とかで取り出して型とかをDebug.Logに出せば一発でわからんか? 837:834 15/09/27 23:03:32.83 2kj/fv1r.net ソースコードは下記です http://climbi.com/b/5249/0 838:名前は開発中のものです。 15/09/27 23:57:43.64 ECJbSCCG.net >>837 Dictionary<string,object> jsonData = MiniJSON.Json.Deserialize(www.text) as Dictionary<string,object>; List<object> weatherList =(List<object>) jsonData["weather"]; foreach(Dictionary<string,object> weather in weatherList) { Debug.Log("Keys:"+weather.Keys); Debug.Log("Weather id:"+weather["id"]); Debug.Log("Weather main:"+weather["main"]); Debug.Log("Weather description:"+weather["description"]); Debug.Log("Weather icon:"+weather["icon"]); } これでweatherとれるぞ(weatherはList<object>) 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch