Answers for "c# get data json from key"

C#
0

how to get key value from json object in c#

//You want to convert it to an object first and then 
//access normally making sure to cast it.

JObject obj = JObject.Parse(json);
string name = (string) obj["Name"];
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