c# - How to load matches.json with RestSharp
The Unlikely Plan [TUP] Raid Leader
You have to deserialize into Dictionary<string, List<Matches>> as the matches.json does not return a pure array but a type which has an array as sub type (some inconsistency in the api here).
However as you seem to work on a .Net implementation of the array I invite you to join us over at GW2.Net (Codeplex site)
ah, thanks for the explanation.
guess i will start using the gw2.net, ty for the hint!
The Unlikely Plan [TUP] Raid Leader
You are welcome. However we have not yet included the WvW (or only a very basic proof of concept). You are welcome to join us in the development process.
You can also create another type that just holds your results, as I did here with the EventList
type.
E.g.
public class MatchList
{
public List<Event> WvwMatches
{ get; set; }
}