Unity5質問スレat GAMEDEV
Unity5質問スレ - 暇つぶし2ch838:名前は開発中のものです。
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>)


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch