Newtonsoft.Json
13.0.3-beta1
.NET 6.0
.NET Standard 1.0
.NET Framework 2.0
This is a prerelease version of Newtonsoft.Json.
Requires NuGet 2.12 or higher.
dotnet add package Newtonsoft.Json --version 13.0.3-beta1
NuGet\Install-Package Newtonsoft.Json -Version 13.0.3-beta1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Newtonsoft.Json" Version="13.0.3-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Newtonsoft.Json --version 13.0.3-beta1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Newtonsoft.Json, 13.0.3-beta1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Newtonsoft.Json as a Cake Addin
#addin nuget:?package=Newtonsoft.Json&version=13.0.3-beta1&prerelease
// Install Newtonsoft.Json as a Cake Tool
#tool nuget:?package=Newtonsoft.Json&version=13.0.3-beta1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1 |
.NET Framework | net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen30 tizen40 tizen60 |
Universal Windows Platform | uap uap10.0 |
Windows Phone | wp8 wp81 wpa81 |
Windows Store | netcore netcore45 netcore451 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.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.
GitHub repositories (2.9K)
Showing the top 5 popular GitHub repositories that depend on Newtonsoft.Json:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
2dust/v2rayN
A V2Ray client for Windows, support Xray core and v2fly core
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
ShareX/ShareX
ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
|
|
CodeHubApp/CodeHub
CodeHub is an iOS application written using Xamarin
|
Version | Downloads | Last updated | |
---|---|---|---|
13.0.3-beta1 | 0 | 2/28/2023 | |
7.0.1-beta3 | 24,684 | 5/3/2015 | |
7.0.1-beta2 | 20,204 | 4/6/2015 | |
7.0.1-beta1 | 38,619 | 2/17/2015 | |
6.0.8 | 1,609,109 | 1/11/2015 | |
6.0.7 | 393,128 | 12/23/2014 | |
6.0.6 | 1,154,152 | 10/24/2014 | |
6.0.5 | 882,330 | 9/6/2014 | |
6.0.4 | 1,403,846 | 8/3/2014 | |
6.0.3 | 759,425 | 4/27/2014 | |
6.0.2 | 285,978 | 3/30/2014 | |
6.0.1 | 469,118 | 2/1/2014 | |
6.0.1-beta1 | 1,870 | 1/10/2014 | |
5.0.8 | 782,667 | 10/17/2013 | |
5.0.7 | 177,210 | 10/14/2013 | |
5.0.6 | 622,222 | 6/6/2013 | |
5.0.5 | 151,444 | 5/8/2013 | |
5.0.4 | 298,940 | 4/25/2013 | |
5.0.3 | 99,734 | 4/14/2013 | |
5.0.2 | 95,382 | 4/8/2013 | |
5.0.1 | 151,768 | 4/7/2013 | |
4.5.11 | 820,886 | 11/20/2012 | |
4.5.10 | 55,999 | 10/7/2012 | |
4.5.9 | 36,241 | 9/8/2012 | |
4.5.8 | 37,178 | 8/4/2012 | |
4.5.7 | 44,558 | 6/9/2012 | |
4.5.6 | 287,295 | 5/30/2012 | |
4.5.5 | 10,223 | 5/8/2012 | |
4.5.4 | 9,063 | 4/24/2012 | |
4.5.3 | 5,064 | 4/13/2012 | |
4.5.2 | 4,375 | 4/11/2012 | |
4.5.1 | 43,551 | 3/20/2012 | |
4.0.8 | 35,440 | 2/12/2012 | |
4.0.7 | 3,911 | 1/24/2012 | |
4.0.6 | 2,663 | 1/23/2012 | |
4.0.5 | 12,053 | 12/10/2011 | |
4.0.4 | 3,132 | 11/19/2011 | |
4.0.3 | 4,396 | 10/2/2011 | |
4.0.2 | 5,069 | 4/23/2011 | |
4.0.1 | 6,295 | 4/22/2011 | |
3.5.8 | 4,356 | 1/8/2011 |