I'd like to parse from the website: http://ddragon.leagueoflegends.com/cdn/10.9.1/data/en_US/champion.json
Use this website for better view.
When I type Aatrox I would like to retrieve 266
I managed to do it so far but it is case sensitive. Is there any way to get my code be case-insensitive?
var input = new WebClient().DownloadString(@"http://ddragon.leagueoflegends.com/cdn/10.9.1/data/en_US/champion.json");
var obj = JObject.Parse(input);
var input= obj["data"]["Aatrox"]["key"];
Updated Code
var input = new WebClient().DownloadString(@"http://ddragon.leagueoflegends.com/cdn/10.9.1/data/en_US/champion.json");
JObject json = (JObject)JsonConvert.DeserializeObject(input);
Dictionary<string, object> d = new Dictionary<string, object>(json.ToObject<IDictionary<string, object>>(), StringComparer.CurrentCultureIgnoreCase);
String f = d["data"]["Aatrox"]["key"].ToString();
It is still not working.