Newtonsoft.Json 13.0.2-beta1
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 |
|---|---|
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
|
2,591 |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
|
2,569 |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
|
2,554 |
|
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
|
2,337 |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
|
2,139 |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
|
1,993 |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
|
1,187 |
|
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
|
875 |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter.
|
416 |
|
Microsoft.IdentityModel.Protocols.OpenIdConnect
Includes types that provide support for OpenIdConnect protocol.
|
184 |
|
IdentityServer4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
|
180 |
|
Microsoft.IdentityModel.Tokens
Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.
|
177 |
|
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
|
174 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
173 |
|
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
|
170 |
|
NSwag.Generation.WebApi
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
|
143 |
|
NSwag.Generation.WebApi
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
|
142 |
|
NSwag.Generation.WebApi
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
|
141 |
.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.
| Version | Downloads | Last updated |
|---|---|---|
| 13.0.4 | 11 | 09/21/2025 |
| 13.0.4-beta1 | 10 | 08/03/2025 |
| 13.0.3 | 5,362 | 04/06/2023 |
| 13.0.3-beta1 | 59 | 02/06/2023 |
| 13.0.2 | 52 | 11/24/2022 |
| 13.0.2-beta3 | 45 | 11/16/2022 |
| 13.0.2-beta2 | 59 | 11/09/2022 |
| 13.0.2-beta1 | 49 | 08/06/2022 |
| 13.0.1 | 3,055 | 11/10/2021 |
| 12.0.3 | 324 | 11/09/2020 |
| 12.0.2 | 134 | 11/09/2020 |
| 12.0.1 | 55 | 07/28/2022 |
| 11.0.2 | 90 | 11/09/2020 |
| 11.0.1 | 61 | 08/23/2022 |
| 10.0.3 | 58 | 06/07/2022 |
| 10.0.2 | 53 | 05/15/2023 |
| 10.0.1 | 69 | 11/09/2020 |
| 9.0.1 | 243 | 11/09/2020 |
| 8.0.3 | 50 | 07/06/2023 |
| 8.0.2 | 45 | 07/13/2022 |
| 8.0.1 | 54 | 09/12/2022 |
| 7.0.1 | 58 | 05/13/2023 |
| 6.0.8 | 49 | 10/21/2021 |
| 6.0.7 | 47 | 07/04/2023 |
| 6.0.6 | 40 | 11/09/2022 |
| 6.0.5 | 46 | 07/06/2023 |
| 6.0.4 | 54 | 11/09/2022 |
| 6.0.3 | 46 | 06/11/2023 |
| 6.0.2 | 60 | 06/15/2022 |
| 6.0.1 | 55 | 07/17/2022 |
| 5.0.8 | 48 | 07/08/2023 |
| 5.0.7 | 43 | 07/05/2023 |
| 5.0.6 | 46 | 07/08/2023 |
| 5.0.5 | 50 | 07/22/2022 |
| 5.0.4 | 52 | 07/06/2023 |
| 5.0.3 | 51 | 07/12/2022 |
| 5.0.2 | 55 | 05/14/2023 |
| 5.0.1 | 52 | 11/19/2022 |
| 4.5.11 | 48 | 01/19/2023 |
| 4.5.10 | 42 | 07/07/2023 |
| 4.5.9 | 47 | 09/26/2022 |
| 4.5.8 | 40 | 01/18/2023 |
| 4.5.7 | 45 | 01/18/2023 |
| 4.5.6 | 66 | 11/17/2022 |
| 4.5.5 | 66 | 06/22/2022 |
| 4.5.4 | 64 | 01/18/2023 |
| 4.5.3 | 54 | 11/09/2022 |
| 4.5.2 | 50 | 06/05/2023 |
| 4.5.1 | 53 | 11/09/2022 |
| 4.0.8 | 47 | 05/09/2023 |
| 4.0.7 | 51 | 10/08/2022 |
| 4.0.6 | 49 | 07/24/2022 |
| 4.0.5 | 54 | 06/09/2023 |
| 4.0.4 | 51 | 05/22/2023 |
| 4.0.3 | 50 | 12/01/2022 |
| 4.0.2 | 52 | 11/20/2021 |
| 4.0.1 | 51 | 07/05/2023 |
| 3.5.8 | 49 | 07/05/2023 |