天天看點

C# 利用Newtonsoft.Json進行Json序列化與反序列化

我們可以通過DataContractJsonSerializer類來序列化一個對象為json字元串。

使用Json.NET(Newtonsoft.Json)進行序列化與反序列化。