[Help] [C#] More JSON.NET

Another question relating to JSON.NET.

Following link contains a souce-code excluding my API key for testing purposes: http://ift.tt/1UtA7oY

With API key the following output of this code is fine. Exactly like it should work.

{"id":11,"key":"MasterYi","name":"Master Yi","title":"the Wuju Bladesman"} _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Master Yi 

Current problem for following code is that if I change the format of JSON I don't know how should I format the classes for the following output of JSON. The content of data (inside data) should be somehow stored like that I can use the outputting with "Champ.data[0].name, Champ.data[1].name" or something like that the data can be easily read in my application.

{ "data": { "JarvanIV": { "id": 59, "title": "the Exemplar of Demacia", "name": "Jarvan IV", "allytips": [ "You can use the Dragon Strike / Demacian Standard combo to get out of your own Cataclysm arenas.", "Split your basic attacks on different champions at the beginning of fights to maximize damage.", "Use Demacian Standard as a scouting tool when worried about incoming enemies." ], "key": "JarvanIV" }, "Ezreal": { "id": 81, "title": "the Prodigal Explorer", "name": "Ezreal", "allytips": [ "Use Arcane Shift to help line up your other skill shots.", "You can play Ezreal either as a Attack Damage carry or Ability Power carry depending on how you build him.", "You can line up Trueshot Barrage to hit multiple minion waves or even Monsters." ], "key": "Ezreal" } }, 

"type": "champion", "version": "6.4.1" }

by Bad-Pastor via /r/csharp

Leave a Reply