Newtonsoft.Json 13.0.2-beta1

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
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
2,041
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
2,026
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
2,011
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
1,677
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
1,589
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
1,444
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
870
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
642
IdentityServer4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
176
Microsoft.IdentityModel.Protocols.OpenIdConnect
Includes types that provide support for OpenIdConnect protocol.
175
Microsoft.IdentityModel.Tokens
Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.
170
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
168
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
167
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
165
NSwag.Generation.WebApi
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
137
NSwag.Generation.WebApi
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
136
NSwag.Generation.WebApi
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
135
NSwag.Generation.WebApi
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
131

.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.4-beta1 4 08/03/2025
13.0.3 4,697 04/06/2023
13.0.3-beta1 53 02/06/2023
13.0.2 45 11/24/2022
13.0.2-beta3 40 11/16/2022
13.0.2-beta2 49 11/09/2022
13.0.2-beta1 43 08/06/2022
13.0.1 2,490 11/10/2021
12.0.3 311 11/09/2020
12.0.2 126 11/09/2020
12.0.1 48 07/28/2022
11.0.2 81 11/09/2020
11.0.1 53 08/23/2022
10.0.3 42 06/07/2022
10.0.2 47 05/15/2023
10.0.1 66 11/09/2020
9.0.1 228 11/09/2020
8.0.3 42 07/06/2023
8.0.2 39 07/13/2022
8.0.1 49 09/12/2022
7.0.1 44 05/13/2023
6.0.8 45 10/21/2021
6.0.7 39 07/04/2023
6.0.6 35 11/09/2022
6.0.5 40 07/06/2023
6.0.4 50 11/09/2022
6.0.3 39 06/11/2023
6.0.2 55 06/15/2022
6.0.1 50 07/17/2022
5.0.8 44 07/08/2023
5.0.7 39 07/05/2023
5.0.6 40 07/08/2023
5.0.5 45 07/22/2022
5.0.4 44 07/06/2023
5.0.3 45 07/12/2022
5.0.2 48 05/14/2023
5.0.1 47 11/19/2022
4.5.11 40 01/19/2023
4.5.10 36 07/07/2023
4.5.9 36 09/26/2022
4.5.8 37 01/18/2023
4.5.7 39 01/18/2023
4.5.6 60 11/17/2022
4.5.5 60 06/22/2022
4.5.4 54 01/18/2023
4.5.3 46 11/09/2022
4.5.2 45 06/05/2023
4.5.1 46 11/09/2022
4.0.8 43 05/09/2023
4.0.7 46 10/08/2022
4.0.6 42 07/24/2022
4.0.5 49 06/09/2023
4.0.4 46 05/22/2023
4.0.3 45 12/01/2022
4.0.2 47 11/20/2021
4.0.1 45 07/05/2023
3.5.8 42 07/05/2023