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
99
Quantum.Framework.Core.NetCore
Package Description
100
Quantum.Framework.Core.NetCore
Package Description
101
Quantum.Framework.Core.NetCore
Package Description
109
Quantum.Framework.Core.NetCore
Package Description
114
Quantum.Framework.Core.NetCore
Package Description
115
Quantum.Framework.Core.NetCore
Package Description
122
Quantum.Framework.Core.NetCore
Package Description
123
Quantum.Framework.Core.NetCore
Package Description
140
Quantum.Framework.Core.NetCore
Package Description
142
Quantum.Framework.Core.NetCore
Package Description
144
Quantum.Framework.Core.NetCore
Package Description
146
Quantum.Framework.Core.NetCore
Package Description
152
Quantum.Framework.Core.NetCore
Package Description
188
Quantum.Framework.Core.NetCore
Package Description
196
Quantum.Framework.Core.NetCore
Package Description
272
ZhonTai.Admin
中台Admin权限管理接口库
100
ZhonTai.Admin
中台Admin权限管理接口库
104

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