json deserialize list of objects c# vb.net code example
Example: 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;}
}