Microsoft.AspNetCore.Mvc.NewtonsoftJson 11.0.0-preview.5.26302.115

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
125
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
127
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
128
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
130
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
131
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
132
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
133
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
134
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
135
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
141
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
144
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
146
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
133
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
141
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
130
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
131
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
133
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
162

.NET 11.0

Version Downloads Last updated
11.0.0-preview.5.26302.115 9 06/09/2026
11.0.0-preview.4.26230.115 16 05/13/2026
11.0.0-preview.3.26207.106 23 04/14/2026
11.0.0-preview.2.26159.112 31 03/12/2026
11.0.0-preview.1.26104.118 33 02/11/2026
10.0.9 13 06/09/2026
10.0.8 12 05/13/2026
10.0.7 21 04/21/2026
10.0.6 30 04/14/2026
10.0.5 31 03/13/2026
10.0.4 30 03/11/2026
10.0.3 34 02/11/2026
10.0.2 145 01/14/2026
10.0.1 69 12/10/2025
10.0.0 175 11/11/2025
10.0.0-rc.2.25502.107 100 10/14/2025
10.0.0-rc.1.25451.107 88 09/09/2025
10.0.0-preview.7.25380.108 107 08/12/2025
10.0.0-preview.6.25358.103 89 07/15/2025
10.0.0-preview.5.25277.114 84 06/07/2025
10.0.0-preview.4.25258.110 111 05/13/2025
10.0.0-preview.3.25172.1 116 04/11/2025
10.0.0-preview.2.25164.1 120 04/02/2025
10.0.0-preview.1.25120.3 111 04/02/2025
9.0.17 11 06/09/2026
9.0.16 12 05/13/2026
9.0.15 24 04/14/2026
9.0.14 28 03/12/2026
9.0.13 30 02/11/2026
9.0.12 31 01/14/2026
9.0.11 68 11/11/2025
9.0.10 92 10/14/2025
9.0.9 87 09/09/2025
9.0.8 326 08/05/2025
9.0.7 135 07/08/2025
9.0.6 96 06/12/2025
9.0.5 116 05/14/2025
9.0.4 109 04/11/2025
9.0.3 293 03/15/2025
9.0.2 248 02/14/2025
9.0.1 101 02/07/2025
9.0.0 121 11/14/2024
9.0.0-rc.2.24474.3 121 10/16/2024
9.0.0-rc.1.24452.1 109 09/19/2024
9.0.0-preview.7.24406.2 121 08/19/2024
9.0.0-preview.6.24328.4 144 07/19/2024
9.0.0-preview.5.24306.11 153 07/20/2024
9.0.0-preview.4.24267.6 146 07/20/2024
9.0.0-preview.3.24172.13 147 07/20/2024
9.0.0-preview.2.24128.4 141 07/20/2024
9.0.0-preview.1.24081.5 154 07/20/2024
8.0.28 9 06/09/2026
8.0.27 16 05/13/2026
8.0.26 26 04/14/2026
8.0.25 22 03/12/2026
8.0.24 27 02/11/2026
8.0.23 36 01/14/2026
8.0.22 64 11/11/2025
8.0.21 61 10/14/2025
8.0.20 69 09/09/2025
8.0.19 99 08/05/2025
8.0.18 94 07/08/2025
8.0.17 84 06/10/2025
8.0.16 91 05/14/2025
8.0.15 104 04/10/2025
8.0.14 105 03/30/2025
8.0.13 128 03/30/2025
8.0.12 112 03/30/2025
8.0.11 115 11/14/2024
8.0.10 388 10/15/2024
8.0.8 309 08/19/2024
8.0.7 166 07/20/2024
8.0.6 182 06/27/2024
8.0.5 141 07/20/2024
8.0.4 140 07/20/2024
8.0.3 145 07/20/2024
8.0.2 209 02/15/2024
8.0.1 213 02/04/2024
8.0.0 124 07/20/2024
8.0.0-rc.2.23480.2 150 07/20/2024
8.0.0-rc.1.23421.29 129 07/20/2024
8.0.0-preview.7.23375.9 142 07/20/2024
8.0.0-preview.6.23329.11 155 07/20/2024
8.0.0-preview.5.23302.2 147 07/20/2024
8.0.0-preview.4.23260.4 127 07/20/2024
8.0.0-preview.3.23177.8 148 07/20/2024
8.0.0-preview.2.23153.2 136 07/20/2024
8.0.0-preview.1.23112.2 143 07/20/2024
7.0.20 139 07/20/2024
7.0.19 128 07/20/2024
7.0.18 138 07/20/2024
7.0.17 136 07/20/2024
7.0.16 131 07/20/2024
7.0.15 130 07/20/2024
7.0.14 139 07/20/2024
7.0.13 151 07/20/2024
7.0.12 144 07/20/2024
7.0.11 141 07/20/2024
7.0.10 142 07/20/2024
7.0.9 127 07/20/2024
7.0.8 135 07/20/2024
7.0.7 138 07/20/2024
7.0.5 133 07/20/2024
7.0.4 154 07/20/2024
7.0.3 191 02/04/2024
7.0.2 138 07/20/2024
7.0.1 137 07/20/2024
7.0.0 137 02/04/2024
7.0.0-rc.2.22476.2 150 07/20/2024
7.0.0-rc.1.22427.2 126 07/20/2024
7.0.0-preview.7.22376.6 131 07/20/2024
7.0.0-preview.6.22330.3 147 07/20/2024
7.0.0-preview.5.22303.8 135 07/20/2024
7.0.0-preview.4.22251.1 166 07/20/2024
7.0.0-preview.3.22178.4 139 07/20/2024
7.0.0-preview.2.22153.2 135 07/20/2024
7.0.0-preview.1.22109.13 146 07/20/2024
6.0.36 112 11/14/2024
6.0.35 111 10/19/2024
6.0.33 127 08/19/2024
6.0.32 122 07/20/2024
6.0.31 139 07/20/2024
6.0.30 141 07/20/2024
6.0.29 131 07/20/2024
6.0.28 140 07/20/2024
6.0.27 141 07/20/2024
6.0.26 148 07/20/2024
6.0.25 127 07/20/2024
6.0.24 143 07/20/2024
6.0.23 135 07/20/2024
6.0.22 141 07/20/2024
6.0.21 134 07/20/2024
6.0.20 129 07/20/2024
6.0.19 143 07/20/2024
6.0.18 139 07/20/2024
6.0.16 138 07/20/2024
6.0.15 141 07/20/2024
6.0.14 136 07/20/2024
6.0.13 124 07/20/2024
6.0.12 133 07/20/2024
6.0.11 133 07/20/2024
6.0.10 139 07/20/2024
6.0.9 136 07/20/2024
6.0.8 135 07/20/2024
6.0.7 142 07/20/2024
6.0.6 129 07/20/2024
6.0.5 125 07/20/2024
6.0.4 159 07/19/2024
6.0.3 160 02/05/2024
6.0.2 131 07/19/2024
6.0.1 127 07/19/2024
6.0.0 133 07/19/2024
6.0.0-rc.2.21480.10 142 07/19/2024
6.0.0-rc.1.21452.15 155 07/19/2024
6.0.0-preview.7.21378.6 135 07/19/2024
6.0.0-preview.6.21355.2 138 07/19/2024
6.0.0-preview.5.21301.17 149 07/19/2024
6.0.0-preview.4.21253.5 150 07/19/2024
6.0.0-preview.3.21201.13 142 07/19/2024
6.0.0-preview.2.21154.6 137 07/19/2024
6.0.0-preview.1.21103.6 154 07/19/2024
5.0.17 136 07/19/2024
5.0.16 136 07/19/2024
5.0.15 152 07/19/2024
5.0.14 121 07/19/2024
5.0.13 129 07/19/2024
5.0.12 138 07/19/2024
5.0.11 131 07/19/2024
5.0.10 146 07/19/2024
5.0.9 130 07/19/2024
5.0.8 158 07/19/2024
5.0.7 129 07/19/2024
5.0.6 144 07/19/2024
5.0.5 132 07/19/2024
5.0.4 141 07/19/2024
5.0.3 128 07/19/2024
5.0.2 139 07/19/2024
5.0.1 128 07/19/2024
5.0.0 140 07/19/2024
5.0.0-rc.2.20475.17 157 07/19/2024
5.0.0-rc.1.20451.17 134 07/19/2024
5.0.0-preview.8.20414.8 146 07/19/2024
5.0.0-preview.7.20365.19 128 07/19/2024
5.0.0-preview.6.20312.15 150 07/19/2024
5.0.0-preview.5.20279.2 139 07/19/2024
5.0.0-preview.4.20257.10 132 07/19/2024
5.0.0-preview.3.20215.14 148 07/19/2024
5.0.0-preview.2.20167.3 146 07/19/2024
5.0.0-preview.1.20124.5 137 07/19/2024
3.1.32 136 07/19/2024
3.1.31 143 07/19/2024
3.1.30 141 07/19/2024
3.1.29 132 07/19/2024
3.1.28 149 07/19/2024
3.1.27 140 07/19/2024
3.1.26 155 07/19/2024
3.1.25 135 07/19/2024
3.1.24 145 07/19/2024
3.1.23 142 07/19/2024
3.1.22 148 07/19/2024
3.1.21 134 07/19/2024
3.1.20 132 07/19/2024
3.1.19 146 07/19/2024
3.1.18 141 07/19/2024
3.1.17 155 07/19/2024
3.1.16 137 07/19/2024
3.1.15 139 07/19/2024
3.1.14 125 07/19/2024
3.1.13 133 07/19/2024
3.1.12 140 07/19/2024
3.1.11 149 07/19/2024
3.1.10 142 07/19/2024
3.1.9 135 07/19/2024
3.1.8 139 07/19/2024
3.1.7 148 07/19/2024
3.1.6 125 07/19/2024
3.1.5 126 07/19/2024
3.1.4 149 07/19/2024
3.1.3 135 07/19/2024
3.1.2 118 07/19/2024
3.1.1 157 07/19/2024
3.1.0 146 07/19/2024
3.1.0-preview3.19555.2 157 07/19/2024
3.1.0-preview2.19528.8 140 07/19/2024
3.1.0-preview1.19508.20 126 07/19/2024
3.0.3 137 07/19/2024
3.0.2 139 07/19/2024
3.0.0 131 07/19/2024
3.0.0-rc1.19457.4 143 07/19/2024
3.0.0-preview9.19424.4 135 07/19/2024
3.0.0-preview8.19405.7 156 07/19/2024
3.0.0-preview7.19365.7 145 07/19/2024
3.0.0-preview6.19307.2 143 07/19/2024
3.0.0-preview5-19227-01 144 07/19/2024
3.0.0-preview4-19216-03 139 07/19/2024
3.0.0-preview3-19153-02 141 07/19/2024
3.0.0-preview-19075-0444 138 07/19/2024