Newtonsoft.Json 13.0.3
Json.NET
Json.NET is a popular high-performance JSON framework for .NET
Serialize JSON
Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Sizes = new string[] { "Small" };
string json = JsonConvert.SerializeObject(product);
// {
// "Name": "Apple",
// "Expiry": "2008-12-28T00:00:00",
// "Sizes": [
// "Small"
// ]
// }
Deserialize JSON
string json = @"{
'Name': 'Bad Boys',
'ReleaseDate': '1995-4-7T00:00:00',
'Genres': [
'Action',
'Comedy'
]
}";
Movie m = JsonConvert.DeserializeObject<Movie>(json);
string name = m.Name;
// Bad Boys
LINQ to JSON
JArray array = new JArray();
array.Add("Manual text");
array.Add(new DateTime(2000, 5, 23));
JObject o = new JObject();
o["MyArray"] = array;
string json = o.ToString();
// {
// "MyArray": [
// "Manual text",
// "2000-05-23T00:00:00"
// ]
// }
Links
Showing the top 20 packages that depend on Newtonsoft.Json.
Packages | Downloads |
---|---|
Sense.Socket.AOIClient
适配封装项目,更新Proto包,新增工位和AOI返回数据属性
|
129 |
MSTest.TestAdapter
The adapter to discover and execute MSTest Framework based tests.
Supported platforms:
- .NET 4.5.0+
- .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
- .NET 5.0 (Visual Studio 2019)
- .NET 5.0 Windows.18362+ (WinUI Desktop Apps) (Visual Studio 2019)
- ASP.NET Core 1.0+ (Visual Studio 2017)
|
110 |
Microsoft.VisualStudio.Services.InteractiveClient
Microsoft Visual Studio Services Client (Interactive)
Integrate with Visual Studio Team Services from desktop-based Windows applications that require interactive sign-in by a user.
|
104 |
Sense.Client.SDK
Sense客户端开发工具包
|
103 |
RestSharp.Serializers.NewtonsoftJson
Simple REST and HTTP API Client
|
103 |
Sense.Client.Engine
Package Description
|
102 |
MSTest.TestAdapter
The adapter to discover and execute MSTest Framework based tests.
Supported platforms:
- .NET 4.5.0+
- .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
- .NET 5.0 Windows.17763+ (WinUI Desktop Apps) (Visual Studio 2019)
- ASP.NET Core 1.0+ (Visual Studio 2017)
|
102 |
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
101 |
Talk.Extensions
Talk扩展
|
99 |
Talk.Extensions
Talk扩展
|
96 |
Microsoft.VisualStudio.Services.InteractiveClient
Integrate with Azure DevOps Server 2022 and Azure DevOps Services from desktop-based Windows applications that require interactive sign-in by a user.
|
96 |
Microsoft.IdentityModel.Tokens
Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.
|
94 |
Sense.Socket.AOIClient
优化AOI初始化的速度,只传输用于生产的料
|
94 |
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
92 |
Microsoft.VisualStudio.Web.CodeGeneration.Utils
Contains utilities used by ASP.NET Core Code Generation packages.
|
92 |
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
91 |
Talk.Extensions
Talk扩展
|
90 |
Talk.Extensions
Talk扩展
|
88 |
SqlSugarCore
支持 .Net Core .net5 .net6 .net7 + 版本说明: 5.0.3.5-Max 最低要求.Net Core 3.0+ ,5.0.0-5.0.3.4 最低要求 .Net Core 2.0+ SqlSugar ORM ,High-performance, lightweight
|
88 |
Sense.Algorithm.Chip
新增小图文件夹ng名称命名保存
|
87 |
.NET Framework 2.0
- No dependencies.
.NET Standard 2.0
- No dependencies.
.NET 6.0
- No dependencies.
.NET Standard 1.3
- System.Xml.XmlDocument (>= 4.3.0)
- System.Runtime.Serialization.Formatters (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- Microsoft.CSharp (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
.NET Standard 1.0
- System.ComponentModel.TypeConverter (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- Microsoft.CSharp (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
.NET Framework 4.5
- No dependencies.
.NET Framework 4.0
- No dependencies.
.NET Framework 3.5
- No dependencies.