I need to get data via JSON, through a URL, this link: link
I'm trying with the code below, but I already get error as soon as it downloads the string.
The error you received is:
The character string is not in JSON format.
However, by the (little) I understand, it seems that the return is OK in the format.
Any idea what might be happening?
This is my code:
using (var webClient = new System.Net.WebClient())
{
var json = webClient.DownloadString("https://cryptohub.online/api/market/ticker/EGX/");
dynamic obj = JsonConvert.DeserializeObject(json);
var btc = 0.0;
foreach (var result in obj.BTC_EGX)
btc = result.last;