Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get json from url c#

Use the WebClient class in System.Net.
Keep in mind that WebClient is IDisposable, so you would probably add a using
statement to this in production code. This would look like:

using (WebClient wc = new WebClient())
{
   var json = wc.DownloadString("url");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #url
ADD COMMENT
Topic
Name
9+7 =