Answers for "get json from url c#"

0

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");
}
Posted by: Guest on August-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language