c# json value from object code example
Example 1: object to json c#
using Newtonsoft.Json;
var jsonString = JsonConvert.SerializeObject(obj);
Example 2: 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);