📅  最后修改于: 2022-03-11 15:02:07.450000             🧑  作者: Mango
//using the holy NEWTON! (you can find it as a nuget package)
using Newtonsoft.Json;
//get some storage for your required type
List OutputList;
//usings clean up
//Load some sort of stream (file or memory)
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>(Reader);
}
//bam done
//your type can be anything and can be marked to change names as rquired
public class YourType
{
[JsonProperty("YourTransactions")]
public List transactions {get;set;}
public int count{get;set;}
}