ウィキペディアAPIを使用してデータをクエリしており、結果を文字列[]に変換したいと思います。
クエリ「テスト」
en.wikipedia.org/w/api.php?action=opensearch&search=test&format=json&callback=spellcheck
ここにこの結果を返します:
spellcheck(["test",["Test cricket","Test","Testicle","Testudines","Testosterone","Test pilot","Test (assessment)","Testimonial match","Testimony","Testament (band)"]])
Json.netを使用して、タグ「spellcheck」を削除または無視できますか?このコードを使用して応答を変換すると、アプリケーションがクラッシュします。
Dictionary<string, string[]> dict = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(response);