Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.0

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.

Showing the top 20 packages that depend on Microsoft.AspNetCore.Mvc.NewtonsoftJson.

Packages Downloads
Quantum.Framework.Core.NetCore
Package Description
105
Quantum.Framework.Core.NetCore
Package Description
106
Quantum.Framework.Core.NetCore
Package Description
109
Quantum.Framework.Core.NetCore
Package Description
111
Quantum.Framework.Core.NetCore
Package Description
118
Quantum.Framework.Core.NetCore
Package Description
120
Quantum.Framework.Core.NetCore
Package Description
123
Quantum.Framework.Core.NetCore
Package Description
130
Quantum.Framework.Core.NetCore
Package Description
132
Quantum.Framework.Core.NetCore
Package Description
149
Quantum.Framework.Core.NetCore
Package Description
153
Quantum.Framework.Core.NetCore
Package Description
155
Quantum.Framework.Core.NetCore
Package Description
160
Quantum.Framework.Core.NetCore
Package Description
194
Quantum.Framework.Core.NetCore
Package Description
202
Quantum.Framework.Core.NetCore
Package Description
273
Quantum.Framework.Core.NetCore
Package Description
277
ZhonTai.Admin
中台Admin权限管理接口库
107
ZhonTai.Common
中台通用库
105

Version Downloads Last updated
10.0.0 43 11/13/2025
10.0.0-rc.2.25502.107 30 10/17/2025
10.0.0-rc.1.25451.107 35 09/11/2025
10.0.0-preview.7.25380.108 33 08/14/2025
10.0.0-preview.6.25358.103 28 07/18/2025
10.0.0-preview.5.25277.114 32 06/08/2025
10.0.0-preview.4.25258.110 30 05/16/2025
10.0.0-preview.3.25172.1 37 04/16/2025
10.0.0-preview.2.25164.1 35 03/28/2025
10.0.0-preview.1.25120.3 35 02/26/2025
9.0.11 31 11/14/2025
9.0.10 27 10/17/2025
9.0.9 30 09/12/2025
9.0.8 29 08/08/2025
9.0.7 36 07/11/2025
9.0.6 35 06/14/2025
9.0.5 38 05/17/2025
9.0.4 37 04/25/2025
9.0.3 42 04/03/2025
9.0.2 42 02/15/2025
9.0.1 45 01/31/2025
9.0.0 49 11/14/2024
9.0.0-rc.2.24474.3 49 11/22/2024
9.0.0-rc.1.24452.1 44 12/06/2024
9.0.0-preview.7.24406.2 45 12/11/2024
9.0.0-preview.6.24328.4 39 12/08/2024
9.0.0-preview.5.24306.11 38 12/11/2024
9.0.0-preview.4.24267.6 46 05/29/2024
9.0.0-preview.3.24172.13 39 12/19/2024
9.0.0-preview.2.24128.4 52 05/08/2024
9.0.0-preview.1.24081.5 40 11/11/2024
8.0.22 22 11/14/2025
8.0.21 30 10/17/2025
8.0.20 28 09/11/2025
8.0.19 31 08/16/2025
8.0.18 33 07/27/2025
8.0.17 27 06/12/2025
8.0.16 31 05/17/2025
8.0.15 36 04/25/2025
8.0.14 40 04/02/2025
8.0.13 39 02/15/2025
8.0.12 70 01/19/2025
8.0.11 89 11/14/2024
8.0.10 47 12/06/2024
8.0.8 43 11/26/2024
8.0.7 56 11/14/2024
8.0.6 60 12/06/2024
8.0.5 52 05/29/2024
8.0.4 50 05/13/2024
8.0.3 47 11/30/2024
8.0.2 43 11/29/2024
8.0.1 49 02/04/2024
8.0.0 581 12/18/2023
8.0.0-rc.2.23480.2 44 06/03/2024
8.0.0-rc.1.23421.29 43 06/03/2024
8.0.0-preview.7.23375.9 45 11/13/2024
8.0.0-preview.6.23329.11 70 08/08/2023
8.0.0-preview.5.23302.2 40 11/12/2024
8.0.0-preview.4.23260.4 45 05/13/2024
8.0.0-preview.3.23177.8 44 11/14/2024
8.0.0-preview.2.23153.2 41 11/24/2024
8.0.0-preview.1.23112.2 42 12/10/2024
7.0.20 45 11/14/2024
7.0.19 52 06/03/2024
7.0.18 54 05/13/2024
7.0.17 58 06/03/2024
7.0.16 41 05/13/2024
7.0.15 44 10/31/2024
7.0.14 55 02/04/2024
7.0.13 50 06/03/2024
7.0.12 50 06/03/2024
7.0.11 47 05/04/2024
7.0.10 48 05/13/2024
7.0.9 46 12/02/2024
7.0.8 44 11/29/2024
7.0.7 42 05/19/2024
7.0.5 55 04/13/2023
7.0.4 46 11/14/2024
7.0.3 43 07/13/2023
7.0.2 49 11/26/2024
7.0.1 41 12/09/2024
7.0.0 60 05/13/2024
7.0.0-rc.2.22476.2 50 06/03/2024
7.0.0-rc.1.22427.2 48 06/03/2024
7.0.0-preview.7.22376.6 34 12/06/2024
7.0.0-preview.6.22330.3 39 05/13/2024
7.0.0-preview.5.22303.8 37 01/01/2025
7.0.0-preview.2.22153.2 41 11/27/2024
6.0.36 49 11/14/2024
6.0.35 43 11/14/2024
6.0.33 43 11/26/2024
6.0.32 49 11/14/2024
6.0.31 46 11/29/2024
6.0.30 44 06/03/2024
6.0.29 47 06/03/2024
6.0.28 47 06/03/2024
6.0.27 46 06/03/2024
6.0.26 45 06/03/2024
6.0.25 46 06/03/2024
6.0.24 50 06/03/2024
6.0.23 48 06/03/2024
6.0.22 45 06/03/2024
6.0.21 41 06/03/2024
6.0.20 47 06/03/2024
6.0.19 45 06/03/2024
6.0.18 42 06/03/2024
6.0.16 50 06/03/2024
6.0.15 50 06/03/2024
6.0.14 51 03/09/2023
6.0.13 52 02/01/2023
6.0.12 55 09/13/2023
6.0.11 54 06/03/2024
6.0.10 48 06/03/2024
6.0.9 47 11/23/2024
6.0.7 50 05/20/2024
6.0.6 44 12/13/2024
6.0.2 64 11/28/2024
6.0.0-rc.2.21480.10 40 12/06/2024
6.0.0-rc.1.21452.15 40 06/03/2024
6.0.0-preview.7.21378.6 42 12/11/2024
6.0.0-preview.6.21355.2 42 12/11/2024
6.0.0-preview.4.21253.5 42 11/13/2024
6.0.0-preview.1.21103.6 39 11/14/2024
5.0.17 43 07/13/2023
5.0.12 49 06/03/2024
5.0.6 48 11/14/2024
5.0.4 46 12/01/2024
5.0.3 47 11/13/2024
5.0.1 52 11/26/2024
5.0.0-rc.2.20475.17 44 06/03/2024
5.0.0-preview.7.20365.19 36 11/28/2024
5.0.0-preview.6.20312.15 38 11/13/2024
5.0.0-preview.5.20279.2 38 11/27/2024
5.0.0-preview.4.20257.10 37 11/26/2024
5.0.0-preview.3.20215.14 44 05/13/2024
5.0.0-preview.1.20124.5 37 11/14/2024
3.1.32 9,750 05/11/2023
3.1.31 47 06/03/2024
3.1.30 44 10/25/2022
3.1.29 47 06/03/2024
3.1.27 47 06/03/2024
3.1.26 48 06/03/2024
3.1.25 41 06/03/2024
3.1.0 47 11/28/2024
3.1.0-preview2.19528.8 41 12/06/2024
3.1.0-preview1.19508.20 36 11/25/2024
3.0.3 46 05/20/2024
3.0.2 53 11/13/2024
3.0.0-rc1.19457.4 46 06/03/2024
3.0.0-preview7.19365.7 41 11/27/2024
3.0.0-preview6.19307.2 42 11/12/2024
3.0.0-preview5-19227-01 42 11/12/2024