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
108
Quantum.Framework.Core.NetCore
Package Description
110
Quantum.Framework.Core.NetCore
Package Description
119
Quantum.Framework.Core.NetCore
Package Description
121
Quantum.Framework.Core.NetCore
Package Description
122
Quantum.Framework.Core.NetCore
Package Description
125
Quantum.Framework.Core.NetCore
Package Description
134
Quantum.Framework.Core.NetCore
Package Description
135
Quantum.Framework.Core.NetCore
Package Description
155
Quantum.Framework.Core.NetCore
Package Description
157
Quantum.Framework.Core.NetCore
Package Description
158
Quantum.Framework.Core.NetCore
Package Description
161
Quantum.Framework.Core.NetCore
Package Description
195
Quantum.Framework.Core.NetCore
Package Description
203
Quantum.Framework.Core.NetCore
Package Description
278
Quantum.Framework.Core.NetCore
Package Description
336
ZhonTai.Admin
中台Admin权限管理接口库
109
ZhonTai.Common
中台通用库
111

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