Newtonsoft.Json
13.0.5
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 1.0
This package targets .NET Standard 1.0. The package is compatible with this framework or higher.
.NET Framework 2.0
This package targets .NET Framework 2.0. The package is compatible with this framework or higher.
Requires NuGet 2.12 or higher.
dotnet add package Newtonsoft.Json --version 13.0.5
NuGet\Install-Package Newtonsoft.Json -Version 13.0.5
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.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Newtonsoft.Json" Version="13.0.5" />
<PackageReference Include="Newtonsoft.Json" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Newtonsoft.Json --version 13.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Newtonsoft.Json, 13.0.5"
#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.
#addin nuget:?package=Newtonsoft.Json&version=13.0.5
#tool nuget:?package=Newtonsoft.Json&version=13.0.5
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 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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. |
Compatible target framework(s)
Included target framework(s) (in package)
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 (3.5K)
Showing the top 20 popular GitHub repositories that depend on Newtonsoft.Json:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
shadowsocks/shadowsocks-windows
A C# port of shadowsocks
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
|
|
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
|
|
huiyadanli/RevokeMsgPatcher
:trollface: A hex editor for WeChat/QQ/TIM - PC版微信/QQ/TIM防撤回补丁(我已经看到了,撤回也没用了)
|
|
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.
|
|
dnSpy/dnSpy
.NET debugger and assembly editor
|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
CodeHubApp/CodeHub
CodeHub is an iOS application written using Xamarin
|
|
leiurayer/downkyi
哔哩下载姬downkyi,哔哩哔哩网站视频下载工具,支持批量下载,支持8K、HDR、杜比视界,提供工具箱(音视频提取、去水印等)。
|
|
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
|
|
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
|
|
QL-Win/QuickLook
Bring macOS “Quick Look” feature to Windows
|
|
TGSAN/CMWTAT_Digital_Edition
CloudMoe Windows 10/11 Activation Toolkit get digital license, the best open source Win 10/11 activator in GitHub. GitHub 上最棒的开源 Win10/Win11 数字权利(数字许可证)激活工具!
|
|
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 9
|
|
ppy/osu
rhythm is just a *click* away!
|
|
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
|
|
rocksdanister/lively
Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
Version | Downloads | Last updated | |
---|---|---|---|
13.0.5 | 4,551 | 12/13/2023 | |
13.0.3-beta1 | 51 | 2/28/2023 | |
7.0.1-beta3 | 24,697 | 5/3/2015 | |
7.0.1-beta2 | 20,215 | 4/6/2015 | |
7.0.1-beta1 | 38,630 | 2/17/2015 | |
6.0.8 | 1,609,158 | 1/11/2015 | |
6.0.7 | 393,141 | 12/23/2014 | |
6.0.6 | 1,154,167 | 10/24/2014 | |
6.0.5 | 882,339 | 9/6/2014 | |
6.0.4 | 1,403,867 | 8/3/2014 | |
6.0.3 | 759,438 | 4/27/2014 | |
6.0.2 | 285,987 | 3/30/2014 | |
6.0.1 | 469,129 | 2/1/2014 | |
6.0.1-beta1 | 1,872 | 1/10/2014 | |
5.0.8 | 782,681 | 10/17/2013 | |
5.0.7 | 177,221 | 10/14/2013 | |
5.0.6 | 622,233 | 6/6/2013 | |
5.0.5 | 151,451 | 5/8/2013 | |
5.0.4 | 298,959 | 4/25/2013 | |
5.0.3 | 99,741 | 4/14/2013 | |
5.0.2 | 95,391 | 4/8/2013 | |
5.0.1 | 151,779 | 4/7/2013 | |
4.5.11 | 820,901 | 11/20/2012 | |
4.5.10 | 56,006 | 10/7/2012 | |
4.5.9 | 36,254 | 9/8/2012 | |
4.5.8 | 37,191 | 8/4/2012 | |
4.5.7 | 44,571 | 6/9/2012 | |
4.5.6 | 287,307 | 5/30/2012 | |
4.5.5 | 10,235 | 5/8/2012 | |
4.5.4 | 9,072 | 4/24/2012 | |
4.5.3 | 5,078 | 4/13/2012 | |
4.5.2 | 4,387 | 4/11/2012 | |
4.5.1 | 43,560 | 3/20/2012 | |
4.0.8 | 35,447 | 2/12/2012 | |
4.0.7 | 3,922 | 1/24/2012 | |
4.0.6 | 2,672 | 1/23/2012 | |
4.0.5 | 12,061 | 12/10/2011 | |
4.0.4 | 3,141 | 11/19/2011 | |
4.0.3 | 4,403 | 10/2/2011 | |
4.0.2 | 5,082 | 4/23/2011 | |
4.0.1 | 6,306 | 4/22/2011 | |
3.5.8 | 4,366 | 1/8/2011 |