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
IdentityModel
OpenID Connect & OAuth 2.0 client library
7,104
PuppeteerSharp
Headless Chrome .NET API
7,098
Microsoft.IdentityModel.Tokens
Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.
7,016
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
7,005
Hangfire.Console
Job console for Hangfire
6,968
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
6,857
Hangfire.Core
Core components for Hangfire (background job system for ASP.NET applications).
6,649
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
5,896
MTNT.UTILS
修改了运行计时输出都控制台info
3,591
Hangfire.Core
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required. Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery. https://www.hangfire.io/
3,519
Microsoft.AspNetCore.Mvc.NewtonsoftJson
ASP.NET Core MVC features that use Newtonsoft.Json. Includes input and output formatters for JSON and JSON PATCH. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ae1a6cbe225b99c0bf38b7e31bf60cb653b73a52
3,012
Microsoft.AspNetCore.JsonPatch
ASP.NET Core support for JSON PATCH. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ae1a6cbe225b99c0bf38b7e31bf60cb653b73a52
2,949
NuGet.Packaging
NuGet's understanding of packages. Reading nuspec, nupkgs and package signing.
2,439
Microsoft.AspNet.WebApi.Client
This package adds support for formatting and content negotiation to System.Net.Http. It includes support for JSON, XML, and form URL encoded data.
2,388
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
2,289
Hangfire.Core
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required. Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery. https://www.hangfire.io/
2,227
Hangfire.Core
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required. Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery. https://www.hangfire.io/
2,164
MTNT.UTILS
将项目重新分离
2,006
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files.
1,685
NuGet.Packaging
NuGet's understanding of packages. Reading nuspec, nupkgs and package signing.
1,574

.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 1,032 05/26/2023
13.0.2 12 02/28/2023
13.0.1 5,667 05/24/2021
12.0.3 6,964 12/16/2020
12.0.2 1,439 12/16/2020
12.0.1 10 10/10/2023
11.0.2 1,358 12/16/2020
11.0.1 6,810 12/16/2020
10.0.3 16 05/20/2021
10.0.2 20 10/03/2023
10.0.1 2,531 12/16/2020
9.0.1 5,634 12/16/2020
8.0.3 14 10/12/2023
8.0.2 10 06/05/2023
8.0.1 14 10/12/2023
7.0.1 15 10/03/2023
6.0.8 9 09/27/2023
6.0.7 9 10/12/2023
6.0.6 9 10/12/2023
6.0.5 12 07/17/2023
6.0.4 12 09/09/2023
6.0.3 14 06/06/2023
6.0.2 17 06/16/2023
6.0.1 17 07/01/2023
5.0.8 9 10/11/2023
5.0.7 14 10/12/2023
5.0.6 11 10/12/2023
5.0.5 8 10/12/2023
5.0.4 14 10/11/2023
5.0.3 12 09/27/2023
5.0.2 12 09/27/2023
5.0.1 12 01/19/2021
4.5.11 12 10/22/2023
4.5.10 12 06/09/2023
4.5.9 11 10/12/2023
4.5.8 9 10/12/2023
4.5.7 13 09/18/2023
4.5.6 8 10/12/2023
4.5.5 11 09/27/2023
4.5.4 11 10/12/2023
4.5.3 12 09/30/2023
4.5.2 13 10/12/2023
4.5.1 15 10/11/2023
4.0.8 10 10/11/2023
4.0.7 11 10/11/2023
4.0.6 12 10/12/2023
4.0.5 13 10/12/2023
4.0.4 11 07/05/2023
4.0.3 13 10/12/2023
4.0.2 12 10/12/2023
4.0.1 14 10/11/2023
3.5.8 10 10/11/2023