Newtonsoft.Json 13.0.3

Logo Json.NET

NuGet version (Newtonsoft.Json) Build status

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"
//   ]
// }

Showing the top 20 packages that depend on Newtonsoft.Json.

Packages Downloads
NSwag.Commands
NSwag: The Swagger API toolchain for .NET and TypeScript
6
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
6
AspNet.Security.OpenIdConnect.Primitives
OpenID Connect primitives for the OpenID Connect server middleware.
5
SqlSugarCore
.Net Core3.1 .Net5 .Net6 .Net7 .Net8 .net9 安装此版本,好用的ORM框架 ,支持国外主流和国产人大金仓达梦 OceanBase GaussDB QuestDb ClickHouse Oracle MySql Gbase8s SqlServer Sqlite DB2 DuckDb Hana 等, 使用教程:https://www.donet5.com/Home/Doc?typeId=1226
5
TencentCloudSDK
Tencent Cloud API 3.0 SDK for .NET
5
SqlSugarCore
.Net Core3.1 .Net5 .Net6 .Net7 .Net8 安装此版本,好用的ORM框架 ,支持国外主流和国产人大金仓达梦 OceanBase GaussDB QuestDb ClickHouse Oracle MySql Gbase8s SqlServer Sqlite 等, 使用教程:https://www.donet5.com/Home/Doc?typeId=1226
5
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
5
Z.Expressions.Eval
Evaluate, Compile and Execute C# code at runtime. Support: Dynamic LINQ, Extension Method, Expando Object, and more! Online Example: https://dotnetfiddle.net/COq6FC Include free and prime features.
5
Microsoft.CodeAnalysis.Workspaces.MSBuild
.NET Compiler Platform ("Roslyn") support for analyzing MSBuild projects and solutions. This should be used with at least one of the following packages to add the appropriate language support: - Microsoft.CodeAnalysis.CSharp.Workspaces - Microsoft.CodeAnalysis.VisualBasic.Workspaces More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/8edf7bcd4f1594c3d68a6a567469f41dbd33dd1b.
5
Consul
.NET API for Consul (http://www.consul.io/)
5
AlibabaCloud.OpenApiUtil
Package Description
4
NJsonSchema.CodeGeneration.CSharp
JSON Schema draft v4 reader, generator and validator for .NET
4
SqlSugarCore
.Net Core3.1 .Net5 .Net6 .Net7 .Net8 安装此版本,好用的ORM框架 ,支持国外主流和国产人大金仓达梦 OceanBase GaussDB QuestDb ClickHouse Oracle MySql Gbase8s SqlServer Sqlite, 版本说明: 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
4
FreeSql.Provider.PostgreSQL
FreeSql 数据库实现,基于 PostgreSQL 9.5
4
NSwag.Generation
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
4

.NET Framework 2.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

.NET 6.0

  • No dependencies.

.NET Standard 1.3

.NET Standard 1.0

.NET Framework 4.5

  • No dependencies.

.NET Framework 4.0

  • No dependencies.

.NET Framework 3.5

  • No dependencies.

Version Downloads Last updated
13.0.3 2 2025/5/25
13.0.2 0 2022/11/24
13.0.1 0 2021/3/22
12.0.3 1 2025/4/17
12.0.2 0 2019/4/22
12.0.1 0 2018/11/27
11.0.2 1 2025/4/17
11.0.1 0 2018/2/17
10.0.3 1 2025/4/17
10.0.2 0 2017/4/2
10.0.1 0 2017/3/20
9.0.1 0 2016/6/22
8.0.3 0 2016/3/14
8.0.2 0 2016/1/9
8.0.1 0 2015/12/29
7.0.1 0 2015/6/22
6.0.8 0 2015/1/11
6.0.7 0 2014/12/23
6.0.6 0 2014/10/24
6.0.5 0 2014/9/6
6.0.4 0 2014/8/3
6.0.3 0 2014/4/27
6.0.2 0 2014/3/30
6.0.1 0 2014/2/1
5.0.8 0 2013/10/17
5.0.7 0 2013/10/14
5.0.6 0 2013/6/6
5.0.5 0 2013/5/8
5.0.4 0 2013/4/25
5.0.3 0 2013/4/14
5.0.2 1 2025/5/27
5.0.1 0 2013/4/7
4.5.11 0 2012/11/20
4.5.10 0 2012/10/7
4.5.9 0 2012/9/8
4.5.8 0 2012/8/4
4.5.7 0 2012/6/9
4.5.6 0 2012/5/30
4.5.5 1 2025/5/28
4.5.4 0 2012/4/24
4.5.3 0 2012/4/13
4.5.2 0 2012/4/11
4.5.1 0 2012/3/20
4.0.8 0 2012/2/12
4.0.7 0 2012/1/24
4.0.6 0 2012/1/23
4.0.5 0 2011/12/10
4.0.4 0 2011/11/19
4.0.3 0 2011/10/2
4.0.2 0 2011/4/23
4.0.1 0 2011/4/22
3.5.8 0 2011/1/8