Microsoft.AspNetCore.Mvc.NewtonsoftJson 9.0.11

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
67
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
68
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
69
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
70
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
71
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
73
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
74
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
77
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
79
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
71
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
83
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
85
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
76
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
77
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
79
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
91

Version Downloads Last updated
10.0.0 5 11/11/2025
10.0.0-rc.2.25502.107 18 10/14/2025
10.0.0-rc.1.25451.107 31 09/09/2025
10.0.0-preview.7.25380.108 32 08/12/2025
10.0.0-preview.6.25358.103 32 07/15/2025
10.0.0-preview.5.25277.114 36 06/07/2025
10.0.0-preview.4.25258.110 49 05/13/2025
10.0.0-preview.3.25172.1 53 04/11/2025
10.0.0-preview.2.25164.1 59 04/02/2025
10.0.0-preview.1.25120.3 48 04/02/2025
9.0.11 5 11/11/2025
9.0.10 18 10/14/2025
9.0.9 33 09/09/2025
9.0.8 182 08/05/2025
9.0.7 74 07/08/2025
9.0.6 49 06/12/2025
9.0.5 56 05/14/2025
9.0.4 57 04/11/2025
9.0.3 217 03/15/2025
9.0.2 177 02/14/2025
9.0.1 61 02/07/2025
9.0.0 59 11/14/2024
9.0.0-rc.2.24474.3 53 10/16/2024
9.0.0-rc.1.24452.1 51 09/19/2024
9.0.0-preview.7.24406.2 67 08/19/2024
9.0.0-preview.6.24328.4 77 07/19/2024
9.0.0-preview.5.24306.11 87 07/20/2024
9.0.0-preview.4.24267.6 88 07/20/2024
9.0.0-preview.3.24172.13 88 07/20/2024
9.0.0-preview.2.24128.4 80 07/20/2024
9.0.0-preview.1.24081.5 86 07/20/2024
8.0.22 6 11/11/2025
8.0.21 17 10/14/2025
8.0.20 20 09/09/2025
8.0.19 32 08/05/2025
8.0.18 45 07/08/2025
8.0.17 40 06/10/2025
8.0.16 45 05/14/2025
8.0.15 45 04/10/2025
8.0.14 55 03/30/2025
8.0.13 61 03/30/2025
8.0.12 58 03/30/2025
8.0.11 57 11/14/2024
8.0.10 304 10/15/2024
8.0.8 253 08/19/2024
8.0.7 116 07/20/2024
8.0.6 125 06/27/2024
8.0.5 87 07/20/2024
8.0.4 87 07/20/2024
8.0.3 97 07/20/2024
8.0.2 160 02/15/2024
8.0.1 166 02/04/2024
8.0.0 74 07/20/2024
8.0.0-rc.2.23480.2 89 07/20/2024
8.0.0-rc.1.23421.29 73 07/20/2024
8.0.0-preview.7.23375.9 80 07/20/2024
8.0.0-preview.6.23329.11 89 07/20/2024
8.0.0-preview.5.23302.2 80 07/20/2024
8.0.0-preview.4.23260.4 77 07/20/2024
8.0.0-preview.3.23177.8 84 07/20/2024
8.0.0-preview.2.23153.2 74 07/20/2024
8.0.0-preview.1.23112.2 86 07/20/2024
7.0.20 86 07/20/2024
7.0.19 83 07/20/2024
7.0.18 80 07/20/2024
7.0.17 80 07/20/2024
7.0.16 81 07/20/2024
7.0.15 86 07/20/2024
7.0.14 87 07/20/2024
7.0.13 93 07/20/2024
7.0.12 79 07/20/2024
7.0.11 88 07/20/2024
7.0.10 96 07/20/2024
7.0.9 76 07/20/2024
7.0.8 83 07/20/2024
7.0.7 87 07/20/2024
7.0.5 73 07/20/2024
7.0.4 99 07/20/2024
7.0.3 142 02/04/2024
7.0.2 84 07/20/2024
7.0.1 88 07/20/2024
7.0.0 88 02/04/2024
7.0.0-rc.2.22476.2 83 07/20/2024
7.0.0-rc.1.22427.2 76 07/20/2024
7.0.0-preview.7.22376.6 73 07/20/2024
7.0.0-preview.6.22330.3 80 07/20/2024
7.0.0-preview.5.22303.8 80 07/20/2024
7.0.0-preview.4.22251.1 95 07/20/2024
7.0.0-preview.3.22178.4 85 07/20/2024
7.0.0-preview.2.22153.2 81 07/20/2024
7.0.0-preview.1.22109.13 83 07/20/2024
6.0.36 57 11/14/2024
6.0.35 58 10/19/2024
6.0.33 65 08/19/2024
6.0.32 76 07/20/2024
6.0.31 91 07/20/2024
6.0.30 85 07/20/2024
6.0.29 80 07/20/2024
6.0.28 88 07/20/2024
6.0.27 85 07/20/2024
6.0.26 96 07/20/2024
6.0.25 83 07/20/2024
6.0.24 91 07/20/2024
6.0.23 84 07/20/2024
6.0.22 79 07/20/2024
6.0.21 80 07/20/2024
6.0.20 78 07/20/2024
6.0.19 83 07/20/2024
6.0.18 83 07/20/2024
6.0.16 89 07/20/2024
6.0.15 88 07/20/2024
6.0.14 86 07/20/2024
6.0.13 77 07/20/2024
6.0.12 77 07/20/2024
6.0.11 82 07/20/2024
6.0.10 87 07/20/2024
6.0.9 83 07/20/2024
6.0.8 77 07/20/2024
6.0.7 84 07/20/2024
6.0.6 77 07/20/2024
6.0.5 79 07/20/2024
6.0.4 89 07/19/2024
6.0.3 101 02/05/2024
6.0.2 79 07/19/2024
6.0.1 79 07/19/2024
6.0.0 70 07/19/2024
6.0.0-rc.2.21480.10 84 07/19/2024
6.0.0-rc.1.21452.15 89 07/19/2024
6.0.0-preview.7.21378.6 80 07/19/2024
6.0.0-preview.6.21355.2 77 07/19/2024
6.0.0-preview.5.21301.17 90 07/19/2024
6.0.0-preview.4.21253.5 81 07/19/2024
6.0.0-preview.3.21201.13 88 07/19/2024
6.0.0-preview.2.21154.6 73 07/19/2024
6.0.0-preview.1.21103.6 90 07/19/2024
5.0.17 87 07/19/2024
5.0.16 92 07/19/2024
5.0.15 90 07/19/2024
5.0.14 79 07/19/2024
5.0.13 79 07/19/2024
5.0.12 83 07/19/2024
5.0.11 81 07/19/2024
5.0.10 95 07/19/2024
5.0.9 83 07/19/2024
5.0.8 83 07/19/2024
5.0.7 78 07/19/2024
5.0.6 85 07/19/2024
5.0.5 80 07/19/2024
5.0.4 87 07/19/2024
5.0.3 83 07/19/2024
5.0.2 91 07/19/2024
5.0.1 82 07/19/2024
5.0.0 94 07/19/2024
5.0.0-rc.2.20475.17 90 07/19/2024
5.0.0-rc.1.20451.17 76 07/19/2024
5.0.0-preview.8.20414.8 87 07/19/2024
5.0.0-preview.7.20365.19 71 07/19/2024
5.0.0-preview.6.20312.15 86 07/19/2024
5.0.0-preview.5.20279.2 75 07/19/2024
5.0.0-preview.4.20257.10 73 07/19/2024
5.0.0-preview.3.20215.14 79 07/19/2024
5.0.0-preview.2.20167.3 88 07/19/2024
5.0.0-preview.1.20124.5 79 07/19/2024
3.1.32 85 07/19/2024
3.1.31 87 07/19/2024
3.1.30 81 07/19/2024
3.1.29 83 07/19/2024
3.1.28 87 07/19/2024
3.1.27 86 07/19/2024
3.1.26 89 07/19/2024
3.1.25 87 07/19/2024
3.1.24 85 07/19/2024
3.1.23 91 07/19/2024
3.1.22 93 07/19/2024
3.1.21 82 07/19/2024
3.1.20 85 07/19/2024
3.1.19 95 07/19/2024
3.1.18 79 07/19/2024
3.1.17 91 07/19/2024
3.1.16 90 07/19/2024
3.1.15 79 07/19/2024
3.1.14 74 07/19/2024
3.1.13 83 07/19/2024
3.1.12 91 07/19/2024
3.1.11 96 07/19/2024
3.1.10 90 07/19/2024
3.1.9 87 07/19/2024
3.1.8 81 07/19/2024
3.1.7 95 07/19/2024
3.1.6 74 07/19/2024
3.1.5 76 07/19/2024
3.1.4 91 07/19/2024
3.1.3 86 07/19/2024
3.1.2 76 07/19/2024
3.1.1 85 07/19/2024
3.1.0 90 07/19/2024
3.1.0-preview3.19555.2 87 07/19/2024
3.1.0-preview2.19528.8 82 07/19/2024
3.1.0-preview1.19508.20 74 07/19/2024
3.0.3 80 07/19/2024
3.0.2 92 07/19/2024
3.0.0 87 07/19/2024
3.0.0-rc1.19457.4 85 07/19/2024
3.0.0-preview9.19424.4 82 07/19/2024
3.0.0-preview8.19405.7 83 07/19/2024
3.0.0-preview7.19365.7 90 07/19/2024
3.0.0-preview6.19307.2 77 07/19/2024
3.0.0-preview5-19227-01 89 07/19/2024
3.0.0-preview4-19216-03 83 07/19/2024
3.0.0-preview3-19153-02 86 07/19/2024
3.0.0-preview-19075-0444 82 07/19/2024