Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.1

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
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
90
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
91
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
92
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
95
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
98
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
100
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
103
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
110
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
90
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
103
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
104
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
95
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
98
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
99
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
108

Version Downloads Last updated
10.0.1 16 12/10/2025
10.0.0 36 11/11/2025
10.0.0-rc.2.25502.107 52 10/14/2025
10.0.0-rc.1.25451.107 55 09/09/2025
10.0.0-preview.7.25380.108 62 08/12/2025
10.0.0-preview.6.25358.103 53 07/15/2025
10.0.0-preview.5.25277.114 60 06/07/2025
10.0.0-preview.4.25258.110 75 05/13/2025
10.0.0-preview.3.25172.1 79 04/11/2025
10.0.0-preview.2.25164.1 83 04/02/2025
10.0.0-preview.1.25120.3 70 04/02/2025
9.0.11 18 11/11/2025
9.0.10 45 10/14/2025
9.0.9 52 09/09/2025
9.0.8 259 08/05/2025
9.0.7 97 07/08/2025
9.0.6 70 06/12/2025
9.0.5 75 05/14/2025
9.0.4 76 04/11/2025
9.0.3 240 03/15/2025
9.0.2 203 02/14/2025
9.0.1 74 02/07/2025
9.0.0 87 11/14/2024
9.0.0-rc.2.24474.3 81 10/16/2024
9.0.0-rc.1.24452.1 75 09/19/2024
9.0.0-preview.7.24406.2 89 08/19/2024
9.0.0-preview.6.24328.4 104 07/19/2024
9.0.0-preview.5.24306.11 114 07/20/2024
9.0.0-preview.4.24267.6 115 07/20/2024
9.0.0-preview.3.24172.13 114 07/20/2024
9.0.0-preview.2.24128.4 106 07/20/2024
9.0.0-preview.1.24081.5 116 07/20/2024
8.0.22 30 11/11/2025
8.0.21 31 10/14/2025
8.0.20 38 09/09/2025
8.0.19 59 08/05/2025
8.0.18 63 07/08/2025
8.0.17 57 06/10/2025
8.0.16 60 05/14/2025
8.0.15 72 04/10/2025
8.0.14 75 03/30/2025
8.0.13 81 03/30/2025
8.0.12 76 03/30/2025
8.0.11 77 11/14/2024
8.0.10 332 10/15/2024
8.0.8 274 08/19/2024
8.0.7 135 07/20/2024
8.0.6 143 06/27/2024
8.0.5 108 07/20/2024
8.0.4 113 07/20/2024
8.0.3 113 07/20/2024
8.0.2 180 02/15/2024
8.0.1 190 02/04/2024
8.0.0 93 07/20/2024
8.0.0-rc.2.23480.2 117 07/20/2024
8.0.0-rc.1.23421.29 100 07/20/2024
8.0.0-preview.7.23375.9 106 07/20/2024
8.0.0-preview.6.23329.11 120 07/20/2024
8.0.0-preview.5.23302.2 106 07/20/2024
8.0.0-preview.4.23260.4 99 07/20/2024
8.0.0-preview.3.23177.8 113 07/20/2024
8.0.0-preview.2.23153.2 99 07/20/2024
8.0.0-preview.1.23112.2 110 07/20/2024
7.0.20 108 07/20/2024
7.0.19 100 07/20/2024
7.0.18 106 07/20/2024
7.0.17 107 07/20/2024
7.0.16 101 07/20/2024
7.0.15 103 07/20/2024
7.0.14 107 07/20/2024
7.0.13 116 07/20/2024
7.0.12 104 07/20/2024
7.0.11 107 07/20/2024
7.0.10 116 07/20/2024
7.0.9 100 07/20/2024
7.0.8 108 07/20/2024
7.0.7 107 07/20/2024
7.0.5 95 07/20/2024
7.0.4 120 07/20/2024
7.0.3 163 02/04/2024
7.0.2 106 07/20/2024
7.0.1 108 07/20/2024
7.0.0 106 02/04/2024
7.0.0-rc.2.22476.2 116 07/20/2024
7.0.0-rc.1.22427.2 97 07/20/2024
7.0.0-preview.7.22376.6 95 07/20/2024
7.0.0-preview.6.22330.3 108 07/20/2024
7.0.0-preview.5.22303.8 99 07/20/2024
7.0.0-preview.4.22251.1 120 07/20/2024
7.0.0-preview.3.22178.4 105 07/20/2024
7.0.0-preview.2.22153.2 107 07/20/2024
7.0.0-preview.1.22109.13 109 07/20/2024
6.0.36 87 11/14/2024
6.0.35 81 10/19/2024
6.0.33 87 08/19/2024
6.0.32 92 07/20/2024
6.0.31 110 07/20/2024
6.0.30 115 07/20/2024
6.0.29 99 07/20/2024
6.0.28 112 07/20/2024
6.0.27 107 07/20/2024
6.0.26 114 07/20/2024
6.0.25 98 07/20/2024
6.0.24 112 07/20/2024
6.0.23 102 07/20/2024
6.0.22 105 07/20/2024
6.0.21 99 07/20/2024
6.0.20 101 07/20/2024
6.0.19 104 07/20/2024
6.0.18 103 07/20/2024
6.0.16 108 07/20/2024
6.0.15 109 07/20/2024
6.0.14 103 07/20/2024
6.0.13 101 07/20/2024
6.0.12 97 07/20/2024
6.0.11 99 07/20/2024
6.0.10 108 07/20/2024
6.0.9 103 07/20/2024
6.0.8 100 07/20/2024
6.0.7 106 07/20/2024
6.0.6 99 07/20/2024
6.0.5 99 07/20/2024
6.0.4 111 07/19/2024
6.0.3 124 02/05/2024
6.0.2 101 07/19/2024
6.0.1 98 07/19/2024
6.0.0 95 07/19/2024
6.0.0-rc.2.21480.10 108 07/19/2024
6.0.0-rc.1.21452.15 118 07/19/2024
6.0.0-preview.7.21378.6 101 07/19/2024
6.0.0-preview.6.21355.2 104 07/19/2024
6.0.0-preview.5.21301.17 117 07/19/2024
6.0.0-preview.4.21253.5 107 07/19/2024
6.0.0-preview.3.21201.13 112 07/19/2024
6.0.0-preview.2.21154.6 101 07/19/2024
6.0.0-preview.1.21103.6 119 07/19/2024
5.0.17 104 07/19/2024
5.0.16 110 07/19/2024
5.0.15 113 07/19/2024
5.0.14 99 07/19/2024
5.0.13 99 07/19/2024
5.0.12 102 07/19/2024
5.0.11 106 07/19/2024
5.0.10 116 07/19/2024
5.0.9 104 07/19/2024
5.0.8 101 07/19/2024
5.0.7 97 07/19/2024
5.0.6 111 07/19/2024
5.0.5 104 07/19/2024
5.0.4 106 07/19/2024
5.0.3 100 07/19/2024
5.0.2 112 07/19/2024
5.0.1 97 07/19/2024
5.0.0 113 07/19/2024
5.0.0-rc.2.20475.17 121 07/19/2024
5.0.0-rc.1.20451.17 105 07/19/2024
5.0.0-preview.8.20414.8 109 07/19/2024
5.0.0-preview.7.20365.19 97 07/19/2024
5.0.0-preview.6.20312.15 113 07/19/2024
5.0.0-preview.5.20279.2 109 07/19/2024
5.0.0-preview.4.20257.10 100 07/19/2024
5.0.0-preview.3.20215.14 105 07/19/2024
5.0.0-preview.2.20167.3 114 07/19/2024
5.0.0-preview.1.20124.5 102 07/19/2024
3.1.32 101 07/19/2024
3.1.31 106 07/19/2024
3.1.30 109 07/19/2024
3.1.29 102 07/19/2024
3.1.28 110 07/19/2024
3.1.27 110 07/19/2024
3.1.26 112 07/19/2024
3.1.25 111 07/19/2024
3.1.24 109 07/19/2024
3.1.23 115 07/19/2024
3.1.22 113 07/19/2024
3.1.21 108 07/19/2024
3.1.20 104 07/19/2024
3.1.19 116 07/19/2024
3.1.18 111 07/19/2024
3.1.17 112 07/19/2024
3.1.16 110 07/19/2024
3.1.15 99 07/19/2024
3.1.14 94 07/19/2024
3.1.13 100 07/19/2024
3.1.12 107 07/19/2024
3.1.11 114 07/19/2024
3.1.10 116 07/19/2024
3.1.9 105 07/19/2024
3.1.8 106 07/19/2024
3.1.7 120 07/19/2024
3.1.6 93 07/19/2024
3.1.5 94 07/19/2024
3.1.4 115 07/19/2024
3.1.3 107 07/19/2024
3.1.2 97 07/19/2024
3.1.1 109 07/19/2024
3.1.0 109 07/19/2024
3.1.0-preview3.19555.2 118 07/19/2024
3.1.0-preview2.19528.8 108 07/19/2024
3.1.0-preview1.19508.20 101 07/19/2024
3.0.3 105 07/19/2024
3.0.2 109 07/19/2024
3.0.0 101 07/19/2024
3.0.0-rc1.19457.4 113 07/19/2024
3.0.0-preview9.19424.4 105 07/19/2024
3.0.0-preview8.19405.7 117 07/19/2024
3.0.0-preview7.19365.7 115 07/19/2024
3.0.0-preview6.19307.2 108 07/19/2024
3.0.0-preview5-19227-01 114 07/19/2024
3.0.0-preview4-19216-03 106 07/19/2024
3.0.0-preview3-19153-02 111 07/19/2024
3.0.0-preview-19075-0444 107 07/19/2024