how to deserialize json list in c# code example
Example 1: deserialize json to object c#
dynamic json = Newtonsoft.Json.JsonConvert.DeserializeObject(jsonstring);
Example 2: c# json deserialize list of objects
using Newtonsoft.Json;
List<YourType> OutputList;
using (Stream Stream = new FileStream(ConfigFile, FileMode.Open))
using (StreamReader SR = new StreamReader(Stream))
using (JsonReader Reader = new JsonTextReader(SR))
{
JsonSerializer Serializer = new JsonSerializer();
OutputList = Serializer.Deserialize<List<YourType>>(Reader);
}
public class YourType
{
[JsonProperty("YourTransactions")]
public List<Transactions> transactions {get;set;}
public int count{get;set;}
}