0

MonoDevelop/MonoTouch 内で Newtownsoft.JSON 参照を使用して YouTube リクエストを解析しようとしましたが、リクエストは実行されますが、空の LIST が返されます。これを解析し、主な問題を引き起こしていると思われるネストされたタグを処理する方法に関する提案はありますか?

ネストされたタグの基本構造:

"id": "",
"uploaded": "",
"updated": "",
"uploader": "",
"category": "",
"title": "",
"description": "",
"thumbnail": {
    "sqDefault": "",
    "hqDefault": ""
}

public static void GetVideos() { 試す {

            lock (locker)
            {
                VideoDataCallStarted(null, EventArgs.Empty);

                string result = GetData(APIConstants.apiGetYoutube);

                if (result != "")
                {
                    var j = JsonConvert.DeserializeObject<DataStores.VideosCollection>(result);

                    VideoDataCallComplete(j, EventArgs.Empty);
                }
                else
                {
                    Console.WriteLine("APIInterface.GetVideos() Returned Null Results");
                    VideoDataCallComplete(null, EventArgs.Empty);
                }
            }

        } catch (Exception ex) {
            Console.WriteLine ("Exception in APIInterface.GetVideos() : " + ex.Message);
            VideoDataCallComplete(null, EventArgs.Empty);
        }
    }
4

0 に答える 0