using System.Text.Json;
//对象序列化
JsonSerializer.Serialize(list)
//对象反序列化
JsonSerializer.Deserialize(str);
坑:序列化中文会编码错误
https://cloud.tencent.com/developer/article/1581453
using System.Text.Json;
//对象序列化
JsonSerializer.Serialize(list)
//对象反序列化
JsonSerializer.Deserialize(str);
坑:序列化中文会编码错误
https://cloud.tencent.com/developer/article/1581453
让时间为你证明