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
Finsa.CaravanCore
Package Description
431
Finsa.CaravanCore
Package Description
473
Finsa.CaravanCore
Package Description
574
Finsa.CaravanCore
Package Description
1,252
Finsa.CaravanCore
Package Description
2,164
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/
449
Microsoft.Extensions.Configuration.Json
JSON configuration provider implementation for Microsoft.Extensions.Configuration.
2,787
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files.
401
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files.
917
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files.
1,203
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files.
2,944
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
512
Microsoft.IdentityModel.Protocols.OpenIdConnect
Includes types that provide support for OpenIdConnect protocol.
391
Microsoft.IdentityModel.Protocols.OpenIdConnect
Includes types that provide support for OpenIdConnect protocol.
509
Microsoft.IdentityModel.Tokens
Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.
400
Microsoft.IdentityModel.Tokens
Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.
505
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
812
RestSharp.Newtonsoft.Json
Restores Newtonsoft.JSON as the default serializer for RestSharp.
966
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
413
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
513

.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 35 03/17/2023
13.0.2 26 02/13/2024
13.0.1 2,474 03/22/2021
12.0.3 1,028 02/10/2020
12.0.2 1,033 02/11/2020
12.0.1 526 02/10/2020
11.0.2 808 02/10/2020
11.0.1 906 02/11/2020
10.0.3 195 02/10/2020
10.0.2 178 02/10/2020
10.0.1 702 07/04/2020
9.0.1 1,029 02/10/2020
8.0.3 27 02/10/2020
8.0.2 28 02/10/2020
8.0.1 25 02/10/2020
7.0.1 27 02/10/2020
6.0.8 26 02/10/2020
6.0.7 25 02/13/2024
6.0.6 21 02/13/2024
6.0.5 25 02/13/2024
6.0.4 22 02/10/2020
6.0.3 21 02/13/2024
6.0.2 22 02/13/2024
6.0.1 27 02/10/2020
5.0.8 21 02/13/2024
5.0.7 23 02/10/2020
5.0.6 25 02/13/2024
5.0.5 21 02/13/2024
5.0.4 29 02/13/2024
5.0.3 26 02/13/2024
5.0.2 24 02/13/2024
5.0.1 27 01/05/2021
4.5.11 26 02/13/2024
4.5.10 26 01/20/2024
4.5.9 28 02/13/2024
4.5.8 25 01/13/2024
4.5.7 31 02/13/2024
4.5.6 30 02/10/2020
4.5.5 27 01/16/2024
4.5.4 24 02/13/2024
4.5.3 25 02/13/2024
4.5.2 30 02/13/2024
4.5.1 28 02/13/2024
4.0.8 24 02/13/2024
4.0.7 24 02/13/2024
4.0.6 26 01/24/2024
4.0.5 24 01/09/2024
4.0.4 25 02/13/2024
4.0.3 22 02/13/2024
4.0.2 26 02/13/2024
4.0.1 23 02/13/2024
3.5.8 29 02/13/2024