Newtonsoft.Json
13.0.3
Prefix Reserved
Requires NuGet 2.12 or higher.
dotnet add package Newtonsoft.Json --version 13.0.3
NuGet\Install-Package Newtonsoft.Json -Version 13.0.3
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
paket add Newtonsoft.Json --version 13.0.3
#r "nuget: Newtonsoft.Json, 13.0.3"
// Install Newtonsoft.Json as a Cake Addin #addin nuget:?package=Newtonsoft.Json&version=13.0.3 // Install Newtonsoft.Json as a Cake Tool #tool nuget:?package=Newtonsoft.Json&version=13.0.3
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 (45.6K)
Showing the top 5 NuGet packages that depend on Newtonsoft.Json:
Package | Downloads |
---|---|
Microsoft.AspNetCore.JsonPatch
ASP.NET Core support for JSON PATCH. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/280c613963a1768b810d09f32c998fe4490855e9 |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter. |
|
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON |
|
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. |
|
Microsoft.AspNetCore.Mvc.NewtonsoftJson
ASP.NET Core MVC features that use Newtonsoft.Json. Includes input and output formatters for JSON and JSON PATCH. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/280c613963a1768b810d09f32c998fe4490855e9 |
GitHub repositories (3.3K)
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
|
|
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.
|
Version | Downloads | Last updated | |
---|---|---|---|
13.0.3 | 273,434,719 | 3/8/2023 | |
13.0.2 | 140,430,136 | 11/24/2022 | |
13.0.1 | 787,215,982 | 3/22/2021 | |
12.0.3 | 575,443,988 | 11/9/2019 | |
12.0.2 | 369,825,489 | 4/22/2019 | |
12.0.1 | 186,934,763 | 11/27/2018 | |
11.0.2 | 553,257,081 | 3/24/2018 | |
11.0.1 | 187,989,217 | 2/17/2018 | |
10.0.3 | 442,671,026 | 6/18/2017 | |
10.0.2 | 270,247,639 | 4/2/2017 | |
10.0.1 | 438,202,006 | 3/20/2017 | |
9.0.1 | 754,163,545 | 6/22/2016 | |
8.0.3 | 20,904,523 | 3/14/2016 | |
8.0.2 | 8,831,839 | 1/9/2016 | |
8.0.1 | 2,907,590 | 12/29/2015 | |
7.0.1 | 33,772,421 | 6/22/2015 | |
6.0.8 | 36,979,894 | 1/11/2015 | |
6.0.7 | 1,693,435 | 12/23/2014 | |
6.0.6 | 7,114,713 | 10/24/2014 | |
6.0.5 | 6,356,582 | 9/6/2014 | |
6.0.4 | 58,277,201 | 8/3/2014 | |
6.0.3 | 5,370,689 | 4/27/2014 | |
6.0.2 | 1,813,750 | 3/30/2014 | |
6.0.1 | 9,668,466 | 2/1/2014 | |
5.0.8 | 6,969,358 | 10/17/2013 | |
5.0.7 | 842,347 | 10/14/2013 | |
5.0.6 | 5,426,344 | 6/6/2013 | |
5.0.5 | 1,818,908 | 5/8/2013 | |
5.0.4 | 7,015,596 | 4/25/2013 | |
5.0.3 | 742,690 | 4/14/2013 | |
5.0.2 | 720,950 | 4/8/2013 | |
5.0.1 | 8,406,435 | 4/7/2013 | |
4.5.11 | 13,908,711 | 11/20/2012 | |
4.5.10 | 876,287 | 10/7/2012 | |
4.5.9 | 883,558 | 9/8/2012 | |
4.5.8 | 793,133 | 8/4/2012 | |
4.5.7 | 816,957 | 6/9/2012 | |
4.5.6 | 7,037,707 | 5/30/2012 | |
4.5.5 | 485,327 | 5/8/2012 | |
4.5.4 | 514,977 | 4/24/2012 | |
4.5.3 | 424,851 | 4/13/2012 | |
4.5.2 | 384,729 | 4/11/2012 | |
4.5.1 | 2,296,667 | 3/20/2012 | |
4.0.8 | 1,155,213 | 2/12/2012 | |
4.0.7 | 649,031 | 1/24/2012 | |
4.0.6 | 422,351 | 1/23/2012 | |
4.0.5 | 992,046 | 12/10/2011 | |
4.0.4 | 421,464 | 11/19/2011 | |
4.0.3 | 530,799 | 10/2/2011 | |
4.0.2 | 926,276 | 4/23/2011 | |
4.0.1 | 790,943 | 4/22/2011 | |
3.5.8 | 4,027,449 | 1/8/2011 |