Newtonsoft.Json
13.0.2-beta2
Prefix Reserved
See the version list below for details.
Requires NuGet 2.12 or higher.
dotnet add package Newtonsoft.Json --version 13.0.2-beta2
NuGet\Install-Package Newtonsoft.Json -Version 13.0.2-beta2
<PackageReference Include="Newtonsoft.Json" Version="13.0.2-beta2" />
paket add Newtonsoft.Json --version 13.0.2-beta2
#r "nuget: Newtonsoft.Json, 13.0.2-beta2"
// Install Newtonsoft.Json as a Cake Addin #addin nuget:?package=Newtonsoft.Json&version=13.0.2-beta2&prerelease // Install Newtonsoft.Json as a Cake Tool #tool nuget:?package=Newtonsoft.Json&version=13.0.2-beta2&prerelease
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.0 is compatible. netstandard1.1 was computed. netstandard1.2 was computed. netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wp8 was computed. wp81 was computed. wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 1.0
- Microsoft.CSharp (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
-
.NETStandard 1.3
- Microsoft.CSharp (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Runtime.Serialization.Formatters (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Xml.XmlDocument (>= 4.3.0)
-
.NETStandard 2.0
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages (118.3K)
Showing the top 5 NuGet packages that depend on Newtonsoft.Json:
Package | Downloads |
---|---|
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. |
|
WindowsAzure.Storage
NOTE: As of version 9.4.0, this library has been split into multiple parts and replaced: See https://www.nuget.org/packages/Microsoft.Azure.Storage.Blob/, https://www.nuget.org/packages/Microsoft.Azure.Storage.File/, https://www.nuget.org/packages/Microsoft.Azure.Storage.Queue/, and https://www.nuget.org/packages/Microsoft.Azure.Storage.Common/. For table support, see https://www.nuget.org/packages/Microsoft.Azure.CosmosDB.Table/. This client library enables working with the Microsoft Azure storage services which include the blob and file service for storing binary and text data, the table service for storing structured non-relational data, and the queue service for storing messages that may be accessed by a client. For this release see notes - https://github.com/Azure/azure-storage-net/blob/master/README.md and https://github.com/Azure/azure-storage-net/blob/master/changelog.txt Microsoft Azure Storage team's blog - http://blogs.msdn.com/b/windowsazurestorage/ |
|
Microsoft.Owin.Security.OAuth
Middleware that enables an application to support any standard OAuth 2.0 authentication workflow. |
|
Microsoft.Owin.Security.Google
Contains middlewares to support Google's OpenId and OAuth 2.0 authentication workflows. |
|
Microsoft.Owin.Security.Facebook
Middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow. |
GitHub repositories (3.4K)
Showing the top 5 popular GitHub repositories that depend on Newtonsoft.Json:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
|
|
jellyfin/jellyfin
The Free Software Media System
|
|
huiyadanli/RevokeMsgPatcher
:trollface: A hex editor for WeChat/QQ/TIM - PC版微信/QQ/TIM防撤回补丁(我已经看到了,撤回也没用了)
|
Version | Downloads | Last updated | |
---|---|---|---|
13.0.4 | 20 | 11/22/2023 | |
13.0.3 | 12 | 4/25/2023 | |
13.0.3-beta1 | 0 | 2/9/2023 | |
13.0.2-beta2 | 2 | 10/8/2022 | |
13.0.2-beta1 | 0 | 10/6/2022 | |
13.0.1 | 352 | 1/26/2022 | |
13.0.1-beta1 | 6 | 3/6/2021 | |
12.0.3 | 32,450 | 1/20/2021 | |
12.0.3-beta1 | 0 | 1/19/2021 | |
12.0.2 | 65,516 | 1/19/2021 | |
12.0.2-beta3 | 0 | 1/19/2021 | |
12.0.2-beta2 | 0 | 1/19/2021 | |
12.0.2-beta1 | 0 | 1/20/2021 | |
12.0.1 | 168 | 1/19/2021 | |
12.0.1-beta2 | 0 | 1/19/2021 | |
12.0.1-beta1 | 0 | 1/20/2021 | |
11.0.2 | 46,016 | 1/20/2021 | |
11.0.1 | 33,006 | 1/20/2021 | |
11.0.1-beta3 | 1 | 1/20/2021 | |
11.0.1-beta2 | 0 | 1/20/2021 | |
11.0.1-beta1 | 0 | 1/20/2021 | |
10.0.3 | 81,013 | 1/19/2021 | |
10.0.2 | 98,202 | 5/8/2017 | |
10.0.1 | 552,937 | 1/19/2021 | |
10.0.1-beta1 | 2 | 1/20/2021 | |
9.0.2-beta2 | 5 | 1/20/2021 | |
9.0.2-beta1 | 45 | 1/20/2021 | |
9.0.1 | 58,818 | 1/20/2021 | |
9.0.1-beta1 | 7 | 1/20/2021 | |
8.0.4-beta1 | 132 | 1/19/2021 | |
8.0.3 | 524 | 1/20/2021 | |
8.0.2 | 199 | 1/19/2021 | |
8.0.1 | 94 | 1/19/2021 | |
8.0.1-beta4 | 0 | 1/20/2021 | |
8.0.1-beta3 | 14,724 | 11/22/2015 | |
8.0.1-beta2 | 5,685 | 11/14/2015 | |
8.0.1-beta1 | 16,179 | 10/18/2015 | |
7.0.1 | 1,756,657 | 6/22/2015 | |
7.0.1-beta3 | 28,002 | 5/3/2015 | |
7.0.1-beta2 | 20,973 | 4/6/2015 | |
7.0.1-beta1 | 42,079 | 2/17/2015 | |
6.0.8 | 2,127,491 | 1/11/2015 | |
6.0.7 | 461,716 | 12/23/2014 | |
6.0.6 | 1,561,012 | 10/24/2014 | |
6.0.5 | 1,031,383 | 9/6/2014 | |
6.0.4 | 1,958,247 | 8/3/2014 | |
6.0.3 | 1,131,321 | 4/27/2014 | |
6.0.2 | 523,498 | 3/30/2014 | |
6.0.1 | 877,254 | 2/1/2014 | |
6.0.1-beta1 | 10,968 | 1/10/2014 | |
5.0.8 | 1,697,186 | 10/17/2013 | |
5.0.7 | 358,722 | 10/14/2013 | |
5.0.6 | 1,502,538 | 6/6/2013 | |
5.0.5 | 397,040 | 5/8/2013 | |
5.0.4 | 581,559 | 4/25/2013 | |
5.0.3 | 233,139 | 4/14/2013 | |
5.0.2 | 215,186 | 4/8/2013 | |
5.0.1 | 263,459 | 4/7/2013 | |
4.5.11 | 2,168,372 | 11/20/2012 | |
4.5.10 | 260,478 | 10/7/2012 | |
4.5.9 | 155,915 | 9/8/2012 | |
4.5.8 | 198,106 | 8/4/2012 | |
4.5.7 | 209,397 | 6/9/2012 | |
4.5.6 | 708,499 | 5/30/2012 | |
4.5.5 | 60,671 | 5/8/2012 | |
4.5.4 | 39,152 | 4/24/2012 | |
4.5.3 | 22,689 | 4/13/2012 | |
4.5.2 | 11,072 | 4/11/2012 | |
4.5.1 | 146,984 | 3/20/2012 | |
4.0.8 | 213,508 | 2/12/2012 | |
4.0.7 | 254,701 | 1/24/2012 | |
4.0.6 | 11,955 | 1/23/2012 | |
4.0.5 | 63,482 | 12/10/2011 | |
4.0.4 | 26,684 | 11/19/2011 | |
4.0.3 | 27,522 | 10/2/2011 | |
4.0.2 | 48,798 | 4/23/2011 | |
4.0.1 | 16,232 | 4/22/2011 | |
3.5.8 | 24,031 | 1/8/2011 |