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

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
109
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
111
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
112
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
113
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
116
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
117
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
119
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
120
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
122
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
123
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
131
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
134
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
116
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
125
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
115
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
116
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
120
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
149

.NET 11.0

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