巨型炸弹 API Json
本文关键字:Json API 炸弹 巨型 | 更新日期: 2023-09-27 17:56:33
>我正在尝试使用Giant Bomb API。我还使用 Newtonsoft.Json 来反序列化响应对象。当我尝试将响应转换为类时,我遇到了问题。我对看起来像数组的东西有问题。我不明白它到底是什么以及我应该使用哪个使用 ref 来使其工作......
这是语法: public ApiSearchResult[] results { get; set; }
这是教程: http://social.technet.microsoft.com/wiki/contents/articles/26920.winrt-using-giant-bomb-api-to-get-games-information.aspx
查看文档后,似乎ApiSearchResult
应该是Result
。 尝试将public ApiSearchResult[] results { get; set; }
更改为 public Result[] results { get; set; }
.