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                
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" />                
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                
#r "nuget: Newtonsoft.Json, 13.0.3"                
#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

// Install Newtonsoft.Json as a Cake Tool
#tool nuget:?package=Newtonsoft.Json&version=13.0.3                

Logo Json.NET

NuGet version (Newtonsoft.Json) Build status

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"
//   ]
// }
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (46.5K)

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/af22effae4069a5dfb9b0735859de48820104f5b

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/af22effae4069a5dfb9b0735859de48820104f5b

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!
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防撤回补丁(我已经看到了,撤回也没用了)
Version Downloads Last updated
13.0.3 342,142,549 3/8/2023
13.0.2 152,768,597 11/24/2022
13.0.1 856,010,977 3/22/2021
12.0.3 593,595,184 11/9/2019 12.0.3 has at least one vulnerability with high severity.
12.0.2 378,871,493 4/22/2019 12.0.2 has at least one vulnerability with high severity.
12.0.1 194,153,655 11/27/2018 12.0.1 has at least one vulnerability with high severity.
11.0.2 577,816,129 3/24/2018 11.0.2 has at least one vulnerability with high severity.
11.0.1 197,660,484 2/17/2018 11.0.1 has at least one vulnerability with high severity.
10.0.3 460,530,527 6/18/2017 10.0.3 has at least one vulnerability with high severity.
10.0.2 283,068,215 4/2/2017 10.0.2 has at least one vulnerability with high severity.
10.0.1 456,183,507 3/20/2017 10.0.1 has at least one vulnerability with high severity.
9.0.1 792,188,497 6/22/2016 9.0.1 has at least one vulnerability with high severity.
8.0.3 21,212,727 3/14/2016 8.0.3 has at least one vulnerability with high severity.
8.0.2 8,915,823 1/9/2016 8.0.2 has at least one vulnerability with high severity.
8.0.1 2,948,982 12/29/2015 8.0.1 has at least one vulnerability with high severity.
7.0.1 34,510,171 6/22/2015 7.0.1 has at least one vulnerability with high severity.
6.0.8 37,716,539 1/11/2015 6.0.8 has at least one vulnerability with high severity.
6.0.7 1,704,615 12/23/2014 6.0.7 has at least one vulnerability with high severity.
6.0.6 7,190,030 10/24/2014 6.0.6 has at least one vulnerability with high severity.
6.0.5 6,434,664 9/6/2014 6.0.5 has at least one vulnerability with high severity.
6.0.4 60,539,568 8/3/2014 6.0.4 has at least one vulnerability with high severity.
6.0.3 5,511,095 4/27/2014 6.0.3 has at least one vulnerability with high severity.
6.0.2 1,834,065 3/30/2014 6.0.2 has at least one vulnerability with high severity.
6.0.1 9,850,474 2/1/2014 6.0.1 has at least one vulnerability with high severity.
5.0.8 7,085,038 10/17/2013 5.0.8 has at least one vulnerability with high severity.
5.0.7 843,728 10/14/2013 5.0.7 has at least one vulnerability with high severity.
5.0.6 5,507,800 6/6/2013 5.0.6 has at least one vulnerability with high severity.
5.0.5 1,829,922 5/8/2013 5.0.5 has at least one vulnerability with high severity.
5.0.4 7,414,529 4/25/2013 5.0.4 has at least one vulnerability with high severity.
5.0.3 745,876 4/14/2013 5.0.3 has at least one vulnerability with high severity.
5.0.2 722,182 4/8/2013 5.0.2 has at least one vulnerability with high severity.
5.0.1 8,870,110 4/7/2013 5.0.1 has at least one vulnerability with high severity.
4.5.11 14,125,003 11/20/2012 4.5.11 has at least one vulnerability with high severity.
4.5.10 888,617 10/7/2012 4.5.10 has at least one vulnerability with high severity.
4.5.9 888,199 9/8/2012 4.5.9 has at least one vulnerability with high severity.
4.5.8 797,696 8/4/2012 4.5.8 has at least one vulnerability with high severity.
4.5.7 822,397 6/9/2012 4.5.7 has at least one vulnerability with high severity.
4.5.6 7,251,446 5/30/2012 4.5.6 has at least one vulnerability with high severity.
4.5.5 487,837 5/8/2012 4.5.5 has at least one vulnerability with high severity.
4.5.4 516,100 4/24/2012 4.5.4 has at least one vulnerability with high severity.
4.5.3 426,708 4/13/2012 4.5.3 has at least one vulnerability with high severity.
4.5.2 385,941 4/11/2012 4.5.2 has at least one vulnerability with high severity.
4.5.1 2,327,368 3/20/2012 4.5.1 has at least one vulnerability with high severity.
4.0.8 1,159,183 2/12/2012 4.0.8 has at least one vulnerability with high severity.
4.0.7 650,422 1/24/2012 4.0.7 has at least one vulnerability with high severity.
4.0.6 423,498 1/23/2012 4.0.6 has at least one vulnerability with high severity.
4.0.5 1,015,267 12/10/2011 4.0.5 has at least one vulnerability with high severity.
4.0.4 422,358 11/19/2011 4.0.4 has at least one vulnerability with high severity.
4.0.3 533,998 10/2/2011 4.0.3 has at least one vulnerability with high severity.
4.0.2 929,990 4/23/2011 4.0.2 has at least one vulnerability with high severity.
4.0.1 799,477 4/22/2011 4.0.1 has at least one vulnerability with high severity.
3.5.8 4,140,995 1/8/2011 3.5.8 has at least one vulnerability with high severity.