Answers for "c# 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
0

how get data from json in c#

public class JSONResponse
{
    public string status { get; set; }
    public List<Article> articles { get; set; }
}


JSONResponse response = JsonConvert.DeserializeObject<JSONResponse>(myJSON);
Posted by: Guest on April-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language