Good evening i little lost on how to parse json file,
i have created and downloaded the json file i need form the internet and trying to receive multible artist names and track names that are listed in the json file,
also trying to get the value of the large image link to display,
but unsure on how to do this i have created a download and managed to format it to readable json file as it was all one line,
code i have for this is,
public async void searchtrackAsync(string track)
{
string lookup = "http://ws.audioscrobbler.com/2.0/?method=track.search&track="+track+"&api_key=APIKEY&format=json";
string json = string.Empty; using (var client = new WebClient()) { json = await client.DownloadStringTaskAsync(lookup); }
File.WriteAllText(Application.StartupPath + "//lookup.json", json, Encoding.UTF8);
// Json file by default is one line lets get the formatting correct
string jsonfix = File.ReadAllText(Application.StartupPath + @"\lookup.json");
JToken jt = JToken.Parse(jsonfix);
string formatted = jt.ToString(Newtonsoft.Json.Formatting.Indented);
File.WriteAllText(Application.StartupPath + @"\lookup.json", formatted);
}
and the spits out this file here each file is different but the structure is exactly the same.
i just want to get all track names artist names and the url plus the artwork usally large,
but have no idea how to do this only really ever worked with small files that i created myself i am using newtonsoft but unsure on how to accoumplish this
any help would be greatly appreciated,



