Deserializing JSON to .NET object using Newtonsoft (or LINQ to JSON maybe?)
I know there are a few posts about Newtonsoft so hopefully this isn’t exactly a repeat…I’m trying to convert JSON data returned by Kazaa’s API into a nice object of some kind WebClient client = new WebClient(); Stream stream = client.OpenRead(“http://api.kazaa.com/api/v1/search.json?q=muse&type=Album”); StreamReader reader = new StreamReader(stream); List<string> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<string>>(reader.Read().ToString()); foreach (string item in list) … Read more