Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.0-preview.5.25277.114

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Mvc.NewtonsoftJson.
dotnet add package Microsoft.AspNetCore.Mvc.NewtonsoftJson --version 10.0.0-preview.5.25277.114
                    
NuGet\Install-Package Microsoft.AspNetCore.Mvc.NewtonsoftJson -Version 10.0.0-preview.5.25277.114
                    
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="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="10.0.0-preview.5.25277.114" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="10.0.0-preview.5.25277.114" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" />
                    
Project file
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 Microsoft.AspNetCore.Mvc.NewtonsoftJson --version 10.0.0-preview.5.25277.114
                    
#r "nuget: Microsoft.AspNetCore.Mvc.NewtonsoftJson, 10.0.0-preview.5.25277.114"
                    
#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=Microsoft.AspNetCore.Mvc.NewtonsoftJson&version=10.0.0-preview.5.25277.114&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Mvc.NewtonsoftJson&version=10.0.0-preview.5.25277.114&prerelease
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 (287)

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 5, 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.5.25277.114 1,325 6/6/2025
10.0.0-preview.4.25258.110 2,503 5/12/2025
10.0.0-preview.3.25172.1 4,095 4/10/2025
10.0.0-preview.2.25164.1 1,835 3/18/2025
10.0.0-preview.1.25120.3 25,029 2/25/2025
9.0.6 201,509 6/10/2025
9.0.5 608,112 5/13/2025
9.0.4 937,773 4/8/2025
9.0.3 921,705 3/11/2025
9.0.2 1,111,721 2/11/2025
9.0.1 1,118,857 1/14/2025
9.0.0 3,262,285 11/12/2024
9.0.0-rc.2.24474.3 13,478 10/8/2024
9.0.0-rc.1.24452.1 10,112 9/10/2024
9.0.0-preview.7.24406.2 5,182 8/13/2024
9.0.0-preview.6.24328.4 15,240 7/9/2024
9.0.0-preview.5.24306.11 2,308 6/11/2024
9.0.0-preview.4.24267.6 2,386 5/21/2024
9.0.0-preview.3.24172.13 5,225 4/11/2024
9.0.0-preview.2.24128.4 4,725 3/12/2024
9.0.0-preview.1.24081.5 4,949 2/13/2024
8.0.17 236,070 6/10/2025
8.0.16 598,027 5/13/2025
8.0.15 1,196,214 4/8/2025
8.0.14 1,340,389 3/11/2025
8.0.13 1,640,544 2/11/2025
8.0.12 2,357,772 1/14/2025
8.0.11 6,426,281 11/12/2024
8.0.10 8,016,482 10/8/2024
8.0.8 9,890,080 8/13/2024
8.0.7 6,644,179 7/9/2024
8.0.6 6,710,563 5/28/2024
8.0.5 2,330,636 5/14/2024
8.0.4 6,389,394 4/9/2024
8.0.3 4,808,459 3/12/2024
8.0.2 4,843,325 2/13/2024
8.0.1 7,190,253 1/9/2024
8.0.0 19,174,317 11/14/2023
8.0.0-rc.2.23480.2 61,693 10/10/2023
8.0.0-rc.1.23421.29 29,090 9/12/2023
8.0.0-preview.7.23375.9 15,821 8/8/2023
8.0.0-preview.6.23329.11 10,466 7/11/2023
8.0.0-preview.5.23302.2 7,759 6/13/2023
8.0.0-preview.4.23260.4 266,358 5/16/2023
8.0.0-preview.3.23177.8 18,930 4/11/2023
8.0.0-preview.2.23153.2 9,949 3/14/2023
8.0.0-preview.1.23112.2 15,674 2/21/2023
7.0.20 716,219 5/28/2024
7.0.19 129,894 5/14/2024
7.0.18 218,952 4/9/2024
7.0.17 257,674 3/12/2024
7.0.16 369,796 2/13/2024
7.0.15 744,784 1/9/2024
7.0.14 1,609,127 11/14/2023
7.0.13 1,808,934 10/24/2023
7.0.12 1,128,847 10/10/2023
7.0.11 1,640,995 9/12/2023
7.0.10 2,347,703 8/8/2023
7.0.9 1,719,584 7/11/2023
7.0.8 1,424,107 6/22/2023
7.0.7 1,302,356 6/13/2023
7.0.5 5,540,065 4/11/2023
7.0.4 2,129,477 3/14/2023
7.0.3 2,430,317 2/14/2023
7.0.2 3,213,937 1/10/2023
7.0.1 3,308,576 12/13/2022
7.0.0 15,027,833 11/7/2022
7.0.0-rc.2.22476.2 63,198 10/11/2022
7.0.0-rc.1.22427.2 10,388 9/14/2022
7.0.0-preview.7.22376.6 10,288 8/9/2022
7.0.0-preview.6.22330.3 8,253 7/12/2022
7.0.0-preview.5.22303.8 9,541 6/14/2022
7.0.0-preview.4.22251.1 9,015 5/10/2022
7.0.0-preview.3.22178.4 3,414 4/13/2022
7.0.0-preview.2.22153.2 11,215 3/14/2022
7.0.0-preview.1.22109.13 3,473 2/17/2022
6.0.36 742,625 11/12/2024
6.0.35 434,554 10/8/2024
6.0.33 1,634,679 8/13/2024
6.0.32 673,653 7/9/2024
6.0.31 689,851 5/28/2024
6.0.30 258,562 5/14/2024
6.0.29 882,918 4/9/2024
6.0.28 879,757 3/12/2024
6.0.27 3,156,976 2/13/2024
6.0.26 1,719,429 1/9/2024
6.0.25 3,171,999 11/14/2023
6.0.24 1,828,621 10/24/2023
6.0.23 844,124 10/10/2023
6.0.22 1,689,755 9/12/2023
6.0.21 2,280,309 8/8/2023
6.0.20 2,325,724 7/11/2023
6.0.19 1,383,581 6/22/2023
6.0.18 806,264 6/13/2023
6.0.16 6,060,396 4/11/2023
6.0.15 3,015,484 3/14/2023
6.0.14 3,203,542 2/14/2023
6.0.13 5,311,395 1/10/2023
6.0.12 4,740,196 12/13/2022
6.0.11 7,236,502 11/7/2022
6.0.10 9,954,133 10/11/2022
6.0.9 7,122,794 9/13/2022
6.0.8 9,455,135 8/9/2022
6.0.7 7,480,487 7/12/2022
6.0.6 6,258,480 6/14/2022
6.0.5 12,155,107 5/10/2022
6.0.4 6,960,886 4/11/2022
6.0.3 8,096,168 3/8/2022
6.0.2 7,096,197 2/8/2022
6.0.1 15,883,993 12/14/2021
6.0.0 15,862,303 11/8/2021
6.0.0-rc.2.21480.10 73,654 10/12/2021
6.0.0-rc.1.21452.15 23,183,060 9/14/2021
6.0.0-preview.7.21378.6 65,141 8/10/2021
6.0.0-preview.6.21355.2 9,887 7/14/2021
6.0.0-preview.5.21301.17 6,030 6/15/2021
6.0.0-preview.4.21253.5 13,851 5/24/2021
6.0.0-preview.3.21201.13 9,861 4/8/2021
6.0.0-preview.2.21154.6 6,441 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 7,801 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 2,376,081 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 316,296 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 751,079 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 550,543 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 2,958,101 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 2,314,410 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 5,240,399 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 6,419,311 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 4,006,059 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,694,890 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,749,692 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,889,910 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,976,358 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,710,947 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 4,026,392 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,664,014 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,187,719 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 14,557,095 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 32,476 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 22,299 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 4,754 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 13,469 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 6,552 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 15,761 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 4,948 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 4,261 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 2,777 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 3,332 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 1,521,590 12/13/2022
3.1.31 217,568 11/8/2022
3.1.30 328,061 10/11/2022
3.1.29 399,025 9/13/2022
3.1.28 535,552 8/9/2022
3.1.27 559,395 7/12/2022
3.1.26 426,929 6/14/2022
3.1.25 675,975 5/10/2022
3.1.24 426,238 4/11/2022
3.1.23 844,872 3/8/2022
3.1.22 3,208,320 12/14/2021
3.1.21 1,770,649 11/7/2021
3.1.20 1,231,310 10/11/2021
3.1.19 1,285,022 9/14/2021
3.1.18 1,866,870 8/10/2021
3.1.17 1,820,752 7/13/2021
3.1.16 2,333,960 6/8/2021
3.1.15 2,029,105 5/11/2021
3.1.14 2,586,707 4/6/2021
3.1.13 2,963,449 3/9/2021
3.1.12 2,856,070 2/9/2021
3.1.11 3,193,824 1/12/2021
3.1.10 7,306,164 11/9/2020
3.1.9 7,626,613 10/13/2020
3.1.8 9,395,768 9/8/2020
3.1.7 6,581,836 8/11/2020
3.1.6 7,325,418 7/14/2020
3.1.5 10,243,020 6/9/2020
3.1.4 12,298,869 5/12/2020
3.1.3 13,110,294 3/24/2020
3.1.2 9,156,871 2/18/2020
3.1.1 10,847,020 1/14/2020
3.1.0 10,452,785 12/3/2019
3.1.0-preview3.19555.2 44,750 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 6,192 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 13,128 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 598,397 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 575,158 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 31,713,878 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 39,676 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 79,765 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 112,496 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 116,215 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 276,381 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 831,964 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 39,486 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 6,270,861 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 23,026 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.