1Use the WebClient class in System.Net.
2Keep in mind that WebClient is IDisposable, so you would probably add a using
3statement to this in production code. This would look like:
4
5using (WebClient wc = new WebClient())
6{
7 var json = wc.DownloadString("url");
8}