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
98
Quantum.Framework.Core.NetCore
Package Description
100
Quantum.Framework.Core.NetCore
Package Description
107
Quantum.Framework.Core.NetCore
Package Description
114
Quantum.Framework.Core.NetCore
Package Description
120
Quantum.Framework.Core.NetCore
Package Description
122
Quantum.Framework.Core.NetCore
Package Description
126
Quantum.Framework.Core.NetCore
Package Description
139
Quantum.Framework.Core.NetCore
Package Description
140
Quantum.Framework.Core.NetCore
Package Description
145
Quantum.Framework.Core.NetCore
Package Description
151
Quantum.Framework.Core.NetCore
Package Description
188
Quantum.Framework.Core.NetCore
Package Description
194
Quantum.Framework.Core.NetCore
Package Description
271
ZhonTai.Admin
中台Admin权限管理接口库
103

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