How to query a json file using c# code example
Example 1: 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);
Example 2: how to access data in json format using asp.net c#
string json;
using(var reader = new StreamReader(Request.InputStream)){
json = reader.ReadToEnd();
}
var person = Json.Decode(json);