Newtonsoft.Json
13.0.2-beta1
Prefix Reserved
Requires NuGet 2.12 or higher.
Install-Package Newtonsoft.Json -Version 13.0.2-beta1
dotnet add package Newtonsoft.Json --version 13.0.2-beta1
<PackageReference Include="Newtonsoft.Json" Version="13.0.2-beta1" />
paket add Newtonsoft.Json --version 13.0.2-beta1
#r "nuget: Newtonsoft.Json, 13.0.2-beta1"
// Install Newtonsoft.Json as a Cake Addin
#addin nuget:?package=Newtonsoft.Json&version=13.0.2-beta1&prerelease
// Install Newtonsoft.Json as a Cake Tool
#tool nuget:?package=Newtonsoft.Json&version=13.0.2-beta1&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 |
---|---|
.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 |
.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 |
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 |
-
.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 (36.4K)
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/f6cb1b5953598e1562d33e1cbbdae2b130792833 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects. |
|
Microsoft.TestPlatform.TestHost
Testplatform host executes the test using specified adapter. |
|
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. |
|
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON |
GitHub repositories (2.6K)
Showing the top 5 popular GitHub repositories that depend on Newtonsoft.Json:
Repository | Stars |
---|---|
PowerShell/PowerShell
PowerShell for every system!
|
|
2dust/v2rayN
A V2Ray client for Windows, support Xray core and v2fly core
|
|
CodeHubApp/CodeHub
CodeHub is an iOS application written using Xamarin
|
|
files-community/Files
A modern file manager for Windows
|
|
Wox-launcher/Wox
Launcher for Windows, an alternative to Alfred and Launchy.
|
Version | Downloads | Last updated | |
---|---|---|---|
13.0.2-beta1 | 59,001 | 5/16/2022 | |
13.0.1 | 112,796,145 | 3/22/2021 | |
12.0.3 | 274,804,134 | 11/9/2019 | |
12.0.2 | 212,714,628 | 4/22/2019 | |
12.0.1 | 105,788,583 | 11/27/2018 | |
11.0.2 | 242,715,125 | 3/24/2018 | |
11.0.1 | 78,451,321 | 2/17/2018 | |
10.0.3 | 224,193,868 | 6/18/2017 | |
10.0.2 | 130,977,679 | 4/2/2017 | |
10.0.1 | 198,027,398 | 3/20/2017 | |
9.0.1 | 298,095,678 | 6/22/2016 | |
8.0.3 | 14,941,322 | 3/14/2016 | |
8.0.2 | 6,294,012 | 1/9/2016 | |
8.0.1 | 1,999,559 | 12/29/2015 | |
7.0.1 | 22,741,689 | 6/22/2015 | |
6.0.8 | 26,538,996 | 1/11/2015 | |
6.0.7 | 1,230,958 | 12/23/2014 | |
6.0.6 | 5,706,480 | 10/24/2014 | |
6.0.5 | 4,480,450 | 9/6/2014 | |
6.0.4 | 35,931,086 | 8/3/2014 | |
6.0.3 | 3,278,710 | 4/27/2014 | |
6.0.2 | 1,161,993 | 3/30/2014 | |
6.0.1 | 5,773,620 | 2/1/2014 | |
5.0.8 | 4,599,206 | 10/17/2013 | |
5.0.7 | 517,499 | 10/14/2013 | |
5.0.6 | 3,951,365 | 6/6/2013 | |
5.0.5 | 891,787 | 5/8/2013 | |
5.0.4 | 3,847,773 | 4/25/2013 | |
5.0.3 | 391,228 | 4/14/2013 | |
5.0.2 | 326,132 | 4/8/2013 | |
5.0.1 | 3,782,487 | 4/7/2013 | |
4.5.11 | 10,241,987 | 11/20/2012 | |
4.5.10 | 469,103 | 10/7/2012 | |
4.5.9 | 360,842 | 9/8/2012 | |
4.5.8 | 337,748 | 8/4/2012 | |
4.5.7 | 395,033 | 6/9/2012 | |
4.5.6 | 3,639,179 | 5/30/2012 | |
4.5.5 | 125,849 | 5/8/2012 | |
4.5.4 | 138,317 | 4/24/2012 | |
4.5.3 | 77,866 | 4/13/2012 | |
4.5.2 | 56,720 | 4/11/2012 | |
4.5.1 | 832,060 | 3/20/2012 | |
4.0.8 | 445,536 | 2/12/2012 | |
4.0.7 | 310,331 | 1/24/2012 | |
4.0.6 | 64,209 | 1/23/2012 | |
4.0.5 | 363,243 | 12/10/2011 | |
4.0.4 | 74,055 | 11/19/2011 | |
4.0.3 | 134,345 | 10/2/2011 | |
4.0.2 | 205,631 | 4/23/2011 | |
4.0.1 | 250,711 | 4/22/2011 | |
3.5.8 | 1,384,577 | 1/8/2011 |