http://stackoverflow.com/questions/37058137/cannot-convert-type-newtonsoft-json-linq-jproperty-to-newtonsoft-json-linq-jo

CSharp · Console

/Program.cs

using System;
using Newtonsoft.Json.Linq;
					
public class Program
{
	public static void Main()
	{
        string BSE = "USD";
        string URL = "http://api.fixer.io/latest?base=" + BSE;

        using (var webClient = new System.Net.WebClient())
        {
            var json = webClient.DownloadString(URL);
			
            JObject stuff = JObject.Parse(json);

			foreach (JProperty rate in stuff["rates"])
			{
				Console.WriteLine(rate.Name + ": " + rate.Value);
			}

		}	
	}
}
;