Microsoft.AspNetCore.Mvc.NewtonsoftJson
10.0.0-preview.1.25120.3
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Mvc.NewtonsoftJson --version 10.0.0-preview.1.25120.3
NuGet\Install-Package Microsoft.AspNetCore.Mvc.NewtonsoftJson -Version 10.0.0-preview.1.25120.3
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="10.0.0-preview.1.25120.3" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="10.0.0-preview.1.25120.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" />
paket add Microsoft.AspNetCore.Mvc.NewtonsoftJson --version 10.0.0-preview.1.25120.3
#r "nuget: Microsoft.AspNetCore.Mvc.NewtonsoftJson, 10.0.0-preview.1.25120.3"
#addin nuget:?package=Microsoft.AspNetCore.Mvc.NewtonsoftJson&version=10.0.0-preview.1.25120.3&prerelease
#tool nuget:?package=Microsoft.AspNetCore.Mvc.NewtonsoftJson&version=10.0.0-preview.1.25120.3&prerelease
About
Microsoft.AspNetCore.Mvc.NewtonsoftJson is a NuGet package designed to enable the use of JSON serialization and deserialization using Newtonsoft.Json in ASP.NET Core MVC applications. This package provides support for handling JSON input and output in ASP.NET Core MVC controllers, allowing for seamless integration with existing Newtonsoft.Json configurations and features.
Key Features
- Integration of Newtonsoft.Json into ASP.NET Core MVC for JSON serialization and deserialization.
- Compatible with ASP.NET Core 3.0 and newer.
- Allows customization of JSON serialization settings.
- Supports handling JSON requests and responses in MVC controllers.
How to Use
To start using Microsoft.AspNetCore.Mvc.NewtonsoftJson in your ASP.NET Core MVC application, follow these steps:
Installation
dotnet add package Microsoft.AspNetCore.Mvc.NewtonsoftJson
Configuration
In your Startup.cs file, configure NewtonsoftJson as the default JSON serializer for ASP.NET Core MVC:
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
public void ConfigureServices(IServiceCollection services)
{
services.AddControllersWithViews()
.AddNewtonsoftJson(options =>
{
// Configure Newtonsoft.Json options here
options.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
options.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
});
}
Usage
Now, you can use Newtonsoft.Json serialization and deserialization in your ASP.NET Core MVC controllers:
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
public class SampleController : Controller
{
[HttpPost]
public IActionResult Post([FromBody] MyModel model)
{
// Your action logic here
}
}
public class MyModel
{
public string Name { get; set; }
public int Age { get; set; }
}
For more information on configuring and using Newtonsoft.Json in ASP.NET Core MVC, refer to the official documentation.
Main Types
The main types provided by this library are:
NewtonsoftJsonOptions
: Options for configuring Newtonsoft.Json serialization settings.NewtonsoftJsonInputFormatter
: Input formatter for handling JSON input using Newtonsoft.Json.NewtonsoftJsonOutputFormatter
: Output formatter for handling JSON output using Newtonsoft.Json.
Additional Documentation
Feedback & Contributing
Microsoft.AspNetCore.Authentication.JwtBearer is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net10.0 is compatible. |
-
net10.0
- Microsoft.AspNetCore.JsonPatch (>= 10.0.0-preview.1.25120.3)
- Newtonsoft.Json (>= 13.0.3)
- Newtonsoft.Json.Bson (>= 1.0.2)
NuGet packages (1.4K)
Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Mvc.NewtonsoftJson:
Package | Downloads |
---|---|
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors |
|
Ocelot
Ocelot is an API gateway based on .NET stack. |
|
Abp.AspNetCore
Abp.AspNetCore |
|
Reo.Core.Hosting
Package Description |
|
Omnia.Fx.NetCore.WebApp
Package Description |
GitHub repositories (286)
Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.Mvc.NewtonsoftJson:
Repository | Stars |
---|---|
PowerShell/PowerShell
PowerShell for every system!
|
|
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 9
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
Jackett/Jackett
API Support for your favorite torrent trackers
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 2, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
|
|
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
ThreeMammals/Ocelot
.NET API Gateway
|
|
ElectronNET/Electron.NET
:electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor).
|
|
RicoSuter/NSwag
The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
|
|
louthy/language-ext
C# pure functional programming framework - come and get declarative!
|
|
btcpayserver/btcpayserver
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
|
|
domaindrivendev/Swashbuckle.AspNetCore
Swagger tools for documenting API's built on ASP.NET Core
|
|
anjoy8/Blog.Core
💖 ASP.NET Core 8.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
|
|
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
|
|
MapsterMapper/Mapster
A fast, fun and stimulating object to object Mapper
|
|
cobbr/Covenant
Covenant is a collaborative .NET C2 framework for red teamers.
|
|
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
|
Version | Downloads | Last updated | |
---|---|---|---|
10.0.0-preview.3.25172.1 | 224 | 4/10/2025 | |
10.0.0-preview.2.25164.1 | 1,756 | 3/18/2025 | |
10.0.0-preview.1.25120.3 | 2,255 | 2/25/2025 | |
9.0.4 | 35,359 | 4/8/2025 | |
9.0.3 | 450,662 | 3/11/2025 | |
9.0.2 | 716,379 | 2/11/2025 | |
9.0.1 | 793,948 | 1/14/2025 | |
9.0.0 | 2,129,124 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 12,730 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 9,957 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 4,993 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 15,156 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 2,162 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 2,266 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 4,875 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 4,640 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 4,558 | 2/13/2024 | |
8.0.15 | 29,315 | 4/8/2025 | |
8.0.14 | 560,960 | 3/11/2025 | |
8.0.13 | 1,004,454 | 2/11/2025 | |
8.0.12 | 1,501,588 | 1/14/2025 | |
8.0.11 | 4,582,039 | 11/12/2024 | |
8.0.10 | 6,229,844 | 10/8/2024 | |
8.0.8 | 8,179,322 | 8/13/2024 | |
8.0.7 | 5,569,878 | 7/9/2024 | |
8.0.6 | 5,786,902 | 5/28/2024 | |
8.0.5 | 2,022,226 | 5/14/2024 | |
8.0.4 | 5,575,348 | 4/9/2024 | |
8.0.3 | 4,309,680 | 3/12/2024 | |
8.0.2 | 4,322,237 | 2/13/2024 | |
8.0.1 | 6,407,560 | 1/9/2024 | |
8.0.0 | 15,480,231 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 59,831 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 28,723 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 15,588 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 9,633 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 7,399 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 241,284 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 18,753 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 9,618 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 15,487 | 2/21/2023 | |
7.0.20 | 582,799 | 5/28/2024 | |
7.0.19 | 119,359 | 5/14/2024 | |
7.0.18 | 203,402 | 4/9/2024 | |
7.0.17 | 242,418 | 3/12/2024 | |
7.0.16 | 355,469 | 2/13/2024 | |
7.0.15 | 700,540 | 1/9/2024 | |
7.0.14 | 1,520,948 | 11/14/2023 | |
7.0.13 | 1,737,256 | 10/24/2023 | |
7.0.12 | 1,065,547 | 10/10/2023 | |
7.0.11 | 1,580,618 | 9/12/2023 | |
7.0.10 | 2,275,295 | 8/8/2023 | |
7.0.9 | 1,664,647 | 7/11/2023 | |
7.0.8 | 1,385,489 | 6/22/2023 | |
7.0.7 | 1,251,745 | 6/13/2023 | |
7.0.5 | 5,372,882 | 4/11/2023 | |
7.0.4 | 2,089,938 | 3/14/2023 | |
7.0.3 | 2,359,837 | 2/14/2023 | |
7.0.2 | 3,161,208 | 1/10/2023 | |
7.0.1 | 3,116,298 | 12/13/2022 | |
7.0.0 | 13,761,824 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 62,919 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 10,246 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 10,187 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 8,040 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 9,277 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 8,958 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 3,356 | 4/13/2022 | |
7.0.0-preview.2.22153.2 | 10,977 | 3/14/2022 | |
7.0.0-preview.1.22109.13 | 3,416 | 2/17/2022 | |
6.0.36 | 454,345 | 11/12/2024 | |
6.0.35 | 357,125 | 10/8/2024 | |
6.0.33 | 1,294,056 | 8/13/2024 | |
6.0.32 | 600,374 | 7/9/2024 | |
6.0.31 | 637,667 | 5/28/2024 | |
6.0.30 | 240,446 | 5/14/2024 | |
6.0.29 | 817,911 | 4/9/2024 | |
6.0.28 | 832,116 | 3/12/2024 | |
6.0.27 | 2,771,654 | 2/13/2024 | |
6.0.26 | 1,595,970 | 1/9/2024 | |
6.0.25 | 3,014,682 | 11/14/2023 | |
6.0.24 | 1,704,397 | 10/24/2023 | |
6.0.23 | 811,629 | 10/10/2023 | |
6.0.22 | 1,603,480 | 9/12/2023 | |
6.0.21 | 2,178,307 | 8/8/2023 | |
6.0.20 | 2,247,466 | 7/11/2023 | |
6.0.19 | 1,318,971 | 6/22/2023 | |
6.0.18 | 776,630 | 6/13/2023 | |
6.0.16 | 5,833,696 | 4/11/2023 | |
6.0.15 | 2,873,353 | 3/14/2023 | |
6.0.14 | 3,093,791 | 2/14/2023 | |
6.0.13 | 5,105,858 | 1/10/2023 | |
6.0.12 | 4,606,445 | 12/13/2022 | |
6.0.11 | 6,935,866 | 11/7/2022 | |
6.0.10 | 9,655,229 | 10/11/2022 | |
6.0.9 | 6,907,551 | 9/13/2022 | |
6.0.8 | 9,210,490 | 8/9/2022 | |
6.0.7 | 7,317,871 | 7/12/2022 | |
6.0.6 | 6,060,148 | 6/14/2022 | |
6.0.5 | 11,801,837 | 5/10/2022 | |
6.0.4 | 6,814,412 | 4/11/2022 | |
6.0.3 | 7,965,272 | 3/8/2022 | |
6.0.2 | 6,986,978 | 2/8/2022 | |
6.0.1 | 15,366,660 | 12/14/2021 | |
6.0.0 | 15,297,361 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 71,509 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 22,453,476 | 9/14/2021 | |
6.0.0-preview.7.21378.6 | 61,709 | 8/10/2021 | |
6.0.0-preview.6.21355.2 | 9,822 | 7/14/2021 | |
6.0.0-preview.5.21301.17 | 5,968 | 6/15/2021 | |
6.0.0-preview.4.21253.5 | 12,133 | 5/24/2021 | |
6.0.0-preview.3.21201.13 | 9,744 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 6,359 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 7,722 | 2/12/2021 | |
5.0.17 | 2,289,288 | 5/10/2022 | |
5.0.16 | 310,034 | 4/11/2022 | |
5.0.15 | 731,163 | 3/8/2022 | |
5.0.14 | 538,063 | 2/8/2022 | |
5.0.13 | 2,932,045 | 12/14/2021 | |
5.0.12 | 2,281,342 | 11/7/2021 | |
5.0.11 | 5,186,577 | 10/12/2021 | |
5.0.10 | 6,340,632 | 9/14/2021 | |
5.0.9 | 3,924,485 | 8/10/2021 | |
5.0.8 | 3,645,275 | 7/13/2021 | |
5.0.7 | 3,696,666 | 6/8/2021 | |
5.0.6 | 2,855,518 | 5/11/2021 | |
5.0.5 | 3,926,788 | 4/6/2021 | |
5.0.4 | 2,661,955 | 3/9/2021 | |
5.0.3 | 3,966,452 | 2/9/2021 | |
5.0.2 | 2,621,012 | 1/12/2021 | |
5.0.1 | 2,155,069 | 12/8/2020 | |
5.0.0 | 14,177,592 | 11/9/2020 | |
5.0.0-rc.2.20475.17 | 31,248 | 10/13/2020 | |
5.0.0-rc.1.20451.17 | 20,841 | 9/14/2020 | |
5.0.0-preview.8.20414.8 | 4,670 | 8/25/2020 | |
5.0.0-preview.7.20365.19 | 13,387 | 7/21/2020 | |
5.0.0-preview.6.20312.15 | 6,475 | 6/25/2020 | |
5.0.0-preview.5.20279.2 | 15,682 | 6/10/2020 | |
5.0.0-preview.4.20257.10 | 4,865 | 5/18/2020 | |
5.0.0-preview.3.20215.14 | 4,177 | 4/23/2020 | |
5.0.0-preview.2.20167.3 | 2,692 | 4/2/2020 | |
5.0.0-preview.1.20124.5 | 3,246 | 3/16/2020 | |
3.1.32 | 1,419,107 | 12/13/2022 | |
3.1.31 | 209,195 | 11/8/2022 | |
3.1.30 | 316,983 | 10/11/2022 | |
3.1.29 | 380,934 | 9/13/2022 | |
3.1.28 | 519,097 | 8/9/2022 | |
3.1.27 | 549,235 | 7/12/2022 | |
3.1.26 | 415,160 | 6/14/2022 | |
3.1.25 | 662,265 | 5/10/2022 | |
3.1.24 | 421,193 | 4/11/2022 | |
3.1.23 | 831,425 | 3/8/2022 | |
3.1.22 | 3,139,805 | 12/14/2021 | |
3.1.21 | 1,723,814 | 11/7/2021 | |
3.1.20 | 1,213,876 | 10/11/2021 | |
3.1.19 | 1,268,728 | 9/14/2021 | |
3.1.18 | 1,830,597 | 8/10/2021 | |
3.1.17 | 1,786,378 | 7/13/2021 | |
3.1.16 | 2,298,229 | 6/8/2021 | |
3.1.15 | 1,983,891 | 5/11/2021 | |
3.1.14 | 2,545,200 | 4/6/2021 | |
3.1.13 | 2,929,004 | 3/9/2021 | |
3.1.12 | 2,805,964 | 2/9/2021 | |
3.1.11 | 3,155,366 | 1/12/2021 | |
3.1.10 | 7,192,617 | 11/9/2020 | |
3.1.9 | 7,544,232 | 10/13/2020 | |
3.1.8 | 9,313,522 | 9/8/2020 | |
3.1.7 | 6,521,319 | 8/11/2020 | |
3.1.6 | 7,212,641 | 7/14/2020 | |
3.1.5 | 10,150,492 | 6/9/2020 | |
3.1.4 | 12,201,107 | 5/12/2020 | |
3.1.3 | 12,964,748 | 3/24/2020 | |
3.1.2 | 9,045,988 | 2/18/2020 | |
3.1.1 | 10,702,486 | 1/14/2020 | |
3.1.0 | 10,270,706 | 12/3/2019 | |
3.1.0-preview3.19555.2 | 44,624 | 11/13/2019 | |
3.1.0-preview2.19528.8 | 6,106 | 11/1/2019 | |
3.1.0-preview1.19508.20 | 13,037 | 10/15/2019 | |
3.0.3 | 588,058 | 2/18/2020 | |
3.0.2 | 570,539 | 1/14/2020 | |
3.0.0 | 31,132,061 | 9/23/2019 | |
3.0.0-rc1.19457.4 | 39,261 | 9/16/2019 | |
3.0.0-preview9.19424.4 | 79,366 | 9/4/2019 | |
3.0.0-preview8.19405.7 | 111,983 | 8/13/2019 | |
3.0.0-preview7.19365.7 | 115,569 | 7/23/2019 | |
3.0.0-preview6.19307.2 | 276,065 | 6/12/2019 | |
3.0.0-preview5-19227-01 | 823,995 | 5/6/2019 | |
3.0.0-preview4-19216-03 | 38,940 | 4/18/2019 | |
3.0.0-preview3-19153-02 | 6,210,995 | 3/6/2019 | |
3.0.0-preview-19075-0444 | 22,863 | 1/29/2019 |