Microsoft.AspNetCore.Mvc.NewtonsoftJson 9.0.0-rc.2.24474.3

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Mvc.NewtonsoftJson.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Mvc.NewtonsoftJson --version 9.0.0-rc.2.24474.3                
NuGet\Install-Package Microsoft.AspNetCore.Mvc.NewtonsoftJson -Version 9.0.0-rc.2.24474.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="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.0-rc.2.24474.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.AspNetCore.Mvc.NewtonsoftJson --version 9.0.0-rc.2.24474.3                
#r "nuget: Microsoft.AspNetCore.Mvc.NewtonsoftJson, 9.0.0-rc.2.24474.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 Microsoft.AspNetCore.Mvc.NewtonsoftJson as a Cake Addin
#addin nuget:?package=Microsoft.AspNetCore.Mvc.NewtonsoftJson&version=9.0.0-rc.2.24474.3&prerelease

// Install Microsoft.AspNetCore.Mvc.NewtonsoftJson as a Cake Tool
#tool nuget:?package=Microsoft.AspNetCore.Mvc.NewtonsoftJson&version=9.0.0-rc.2.24474.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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
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 5 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 starting point for Clean Architecture with ASP.NET Core
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.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
Jackett/Jackett
API Support for your favorite torrent trackers
Version Downloads Last updated
9.0.0 54,036 11/12/2024
9.0.0-rc.2.24474.3 9,367 10/8/2024
9.0.0-rc.1.24452.1 9,364 9/10/2024
9.0.0-preview.7.24406.2 4,767 8/13/2024
9.0.0-preview.6.24328.4 14,636 7/9/2024
9.0.0-preview.5.24306.11 1,934 6/11/2024
9.0.0-preview.4.24267.6 2,105 5/21/2024
9.0.0-preview.3.24172.13 4,325 4/11/2024
9.0.0-preview.2.24128.4 4,353 3/12/2024
9.0.0-preview.1.24081.5 3,927 2/13/2024
8.0.11 169,096 11/12/2024
8.0.10 1,962,299 10/8/2024
8.0.8 4,404,542 8/13/2024
8.0.7 3,498,354 7/9/2024
8.0.6 3,929,744 5/28/2024
8.0.5 1,430,497 5/14/2024
8.0.4 3,929,618 4/9/2024
8.0.3 3,169,690 3/12/2024
8.0.2 3,240,033 2/13/2024
8.0.1 4,886,459 1/9/2024
8.0.0 8,958,704 11/14/2023
8.0.0-rc.2.23480.2 54,607 10/10/2023
8.0.0-rc.1.23421.29 27,731 9/12/2023
8.0.0-preview.7.23375.9 14,926 8/8/2023
8.0.0-preview.6.23329.11 8,956 7/11/2023
8.0.0-preview.5.23302.2 6,609 6/13/2023
8.0.0-preview.4.23260.4 186,994 5/16/2023
8.0.0-preview.3.23177.8 18,494 4/11/2023
8.0.0-preview.2.23153.2 8,979 3/14/2023
8.0.0-preview.1.23112.2 15,038 2/21/2023
7.0.20 292,343 5/28/2024
7.0.19 97,584 5/14/2024
7.0.18 160,966 4/9/2024
7.0.17 203,015 3/12/2024
7.0.16 316,364 2/13/2024
7.0.15 572,844 1/9/2024
7.0.14 1,279,749 11/14/2023
7.0.13 1,560,412 10/24/2023
7.0.12 904,547 10/10/2023
7.0.11 1,437,261 9/12/2023
7.0.10 2,110,332 8/8/2023
7.0.9 1,543,637 7/11/2023
7.0.8 1,307,331 6/22/2023
7.0.7 1,132,677 6/13/2023
7.0.5 5,006,793 4/11/2023
7.0.4 1,996,103 3/14/2023
7.0.3 2,187,588 2/14/2023
7.0.2 3,037,071 1/10/2023
7.0.1 2,783,206 12/13/2022
7.0.0 11,247,043 11/7/2022
7.0.0-rc.2.22476.2 62,361 10/11/2022
7.0.0-rc.1.22427.2 9,769 9/14/2022
7.0.0-preview.7.22376.6 9,980 8/9/2022
7.0.0-preview.6.22330.3 7,614 7/12/2022
7.0.0-preview.5.22303.8 8,746 6/14/2022
7.0.0-preview.4.22251.1 8,838 5/10/2022
7.0.0-preview.3.22178.4 3,263 4/13/2022
7.0.0-preview.2.22153.2 10,425 3/14/2022
7.0.0-preview.1.22109.13 3,321 2/17/2022
6.0.36 24,014 11/12/2024
6.0.35 113,637 10/8/2024
6.0.33 561,829 8/13/2024
6.0.32 400,048 7/9/2024
6.0.31 496,791 5/28/2024
6.0.30 191,010 5/14/2024
6.0.29 660,516 4/9/2024
6.0.28 698,711 3/12/2024
6.0.27 2,006,717 2/13/2024
6.0.26 1,349,371 1/9/2024
6.0.25 2,573,083 11/14/2023
6.0.24 1,450,322 10/24/2023
6.0.23 737,562 10/10/2023
6.0.22 1,428,267 9/12/2023
6.0.21 1,947,348 8/8/2023
6.0.20 2,028,222 7/11/2023
6.0.19 1,185,860 6/22/2023
6.0.18 702,424 6/13/2023
6.0.16 5,358,059 4/11/2023
6.0.15 2,598,677 3/14/2023
6.0.14 2,853,715 2/14/2023
6.0.13 4,673,255 1/10/2023
6.0.12 4,339,245 12/13/2022
6.0.11 6,279,058 11/7/2022
6.0.10 9,067,225 10/11/2022
6.0.9 6,455,637 9/13/2022
6.0.8 8,655,050 8/9/2022
6.0.7 6,960,409 7/12/2022
6.0.6 5,664,390 6/14/2022
6.0.5 11,070,444 5/10/2022
6.0.4 6,465,140 4/11/2022
6.0.3 7,676,438 3/8/2022
6.0.2 6,750,262 2/8/2022
6.0.1 14,362,642 12/14/2021
6.0.0 13,978,952 11/8/2021
6.0.0-rc.2.21480.10 70,162 10/12/2021
6.0.0-rc.1.21452.15 20,778,933 9/14/2021
6.0.0-preview.7.21378.6 56,865 8/10/2021
6.0.0-preview.6.21355.2 9,683 7/14/2021
6.0.0-preview.5.21301.17 5,871 6/15/2021
6.0.0-preview.4.21253.5 11,119 5/24/2021
6.0.0-preview.3.21201.13 8,382 4/8/2021
6.0.0-preview.2.21154.6 6,210 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,607 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 2,129,773 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 294,255 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 696,092 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 514,207 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 2,854,104 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 2,207,909 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 5,076,663 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 6,187,179 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,787,310 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,557,211 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,602,535 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,800,428 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,861,761 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,594,446 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 3,874,595 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,489,990 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,114,177 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 13,545,273 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 30,903 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 20,332 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,549 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,232 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,353 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,558 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,737 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,056 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,583 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,130 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 1,227,997 12/13/2022
3.1.31 190,991 11/8/2022
3.1.30 292,434 10/11/2022
3.1.29 341,260 9/13/2022
3.1.28 482,165 8/9/2022
3.1.27 527,454 7/12/2022
3.1.26 394,261 6/14/2022
3.1.25 630,826 5/10/2022
3.1.24 410,662 4/11/2022
3.1.23 803,435 3/8/2022
3.1.22 2,982,536 12/14/2021
3.1.21 1,654,530 11/7/2021
3.1.20 1,177,079 10/11/2021
3.1.19 1,233,456 9/14/2021
3.1.18 1,760,145 8/10/2021
3.1.17 1,714,494 7/13/2021
3.1.16 2,219,291 6/8/2021
3.1.15 1,902,140 5/11/2021
3.1.14 2,431,730 4/6/2021
3.1.13 2,864,964 3/9/2021
3.1.12 2,701,701 2/9/2021
3.1.11 3,064,834 1/12/2021
3.1.10 6,998,011 11/9/2020
3.1.9 7,372,160 10/13/2020
3.1.8 9,155,291 9/8/2020
3.1.7 6,401,947 8/11/2020
3.1.6 7,000,297 7/14/2020
3.1.5 9,958,482 6/9/2020
3.1.4 12,034,729 5/12/2020
3.1.3 12,669,029 3/24/2020
3.1.2 8,834,596 2/18/2020
3.1.1 10,400,728 1/14/2020
3.1.0 9,922,696 12/3/2019
3.1.0-preview3.19555.2 44,380 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 5,986 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 12,825 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 568,054 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 558,001 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 30,022,345 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 38,227 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 78,700 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 110,901 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 114,578 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 275,149 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 805,045 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 37,668 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 6,090,017 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 22,595 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.