I need to load JSON from a URL, and not know why (in this format).
In this ask, all solved: Dynamically load Json from URL on C#
But at this time, i need parse this JSON:
{"Markets":[{"Label":"CHEESE/BTC","Name":"Cheese","Price":0.00000012,"Volume_24h":0.26702542,"Timestamp":1524662820}]}
The format of JSON is diferent. Tryed like this, but not work:
json = webClient.DownloadString("https://www.worldcoinindex.com/apiservice/ticker?key=0b6dmpsEyLlR7meh1QfALwEGE6dC3J&label=cheesebtc&fiat=btc");
dynamic obj = JsonConvert.DeserializeObject(json);
if (obj.success == "true")
{
foreach (var result in obj.result)
{
if (result.Name == "Price")
textbox1.text = result.value.ToString();
}
}