Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.9

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
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
34
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
32
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
31
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
30
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
29
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
29
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
28
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
28
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
27

Version Downloads Last updated
11.0.0-preview.5.26302.115 1 06/11/2026
11.0.0-preview.4.26230.115 6 05/14/2026
11.0.0-preview.3.26207.106 24 04/16/2026
11.0.0-preview.2.26159.112 19 03/13/2026
11.0.0-preview.1.26104.118 19 02/12/2026
10.0.9 1 06/11/2026
10.0.8 6 05/14/2026
10.0.7 22 04/22/2026
10.0.6 14 04/16/2026
10.0.5 17 03/14/2026
10.0.4 20 03/11/2026
10.0.3 24 02/12/2026
10.0.2 28 01/14/2026
10.0.1 32 12/11/2025
10.0.0 30 12/15/2025
10.0.0-rc.2.25502.107 22 12/17/2025
10.0.0-rc.1.25451.107 21 12/11/2025
10.0.0-preview.7.25380.108 21 12/16/2025
10.0.0-preview.6.25358.103 36 12/21/2025
10.0.0-preview.5.25277.114 19 12/15/2025
10.0.0-preview.4.25258.110 15 12/20/2025
10.0.0-preview.3.25172.1 22 12/12/2025
10.0.0-preview.2.25164.1 17 12/13/2025
10.0.0-preview.1.25120.3 21 12/15/2025
9.0.17 2 06/11/2026
9.0.16 8 05/14/2026
9.0.15 19 04/16/2026
9.0.14 22 03/11/2026
9.0.13 24 02/12/2026
9.0.12 29 01/14/2026
9.0.11 22 12/15/2025
9.0.10 30 12/17/2025
9.0.9 18 12/15/2025
9.0.8 18 12/15/2025
9.0.7 23 12/15/2025
9.0.6 33 12/15/2025
9.0.5 23 12/13/2025
9.0.4 25 12/15/2025
9.0.3 23 12/15/2025
9.0.2 31 12/13/2025
9.0.1 32 12/11/2025
9.0.0 25 12/13/2025
9.0.0-rc.2.24474.3 21 12/15/2025
9.0.0-rc.1.24452.1 24 12/15/2025
9.0.0-preview.7.24406.2 28 12/15/2025
9.0.0-preview.6.24328.4 29 12/14/2025
9.0.0-preview.5.24306.11 27 12/14/2025
9.0.0-preview.4.24267.6 27 12/15/2025
9.0.0-preview.3.24172.13 32 12/13/2025
9.0.0-preview.2.24128.4 26 12/13/2025
9.0.0-preview.1.24081.5 27 12/15/2025
8.0.28 1 06/11/2026
8.0.27 7 05/14/2026
8.0.26 20 04/16/2026
8.0.25 18 03/14/2026
8.0.24 26 02/12/2026
8.0.23 26 01/14/2026
8.0.22 23 12/15/2025
8.0.21 24 12/17/2025
8.0.20 25 12/10/2025
8.0.19 25 12/15/2025
8.0.18 20 12/12/2025
8.0.17 19 12/15/2025
8.0.16 24 12/12/2025
8.0.15 25 12/15/2025
8.0.14 24 12/13/2025
8.0.13 27 12/13/2025
8.0.12 22 12/15/2025
8.0.11 27 12/15/2025
8.0.10 23 12/15/2025
8.0.8 32 12/13/2025
8.0.7 24 12/13/2025
8.0.6 26 12/15/2025
8.0.5 29 12/15/2025
8.0.4 27 12/13/2025
8.0.3 25 12/11/2025
8.0.2 21 12/15/2025
8.0.1 25 12/15/2025
8.0.0 22 12/15/2025
8.0.0-rc.2.23480.2 20 12/13/2025
8.0.0-rc.1.23421.29 20 12/13/2025
8.0.0-preview.7.23375.9 24 12/15/2025
8.0.0-preview.6.23329.11 22 12/14/2025
8.0.0-preview.5.23302.2 17 12/13/2025
8.0.0-preview.4.23260.4 23 12/12/2025
8.0.0-preview.3.23177.8 19 12/14/2025
8.0.0-preview.2.23153.2 18 12/15/2025
8.0.0-preview.1.23112.2 33 12/15/2025
7.0.20 29 12/15/2025
7.0.19 21 12/15/2025
7.0.18 26 12/15/2025
7.0.17 25 12/13/2025
7.0.16 25 12/15/2025
7.0.15 21 12/20/2025
7.0.14 24 12/13/2025
7.0.13 38 12/15/2025
7.0.12 31 12/15/2025
7.0.11 25 12/15/2025
7.0.10 26 12/11/2025
7.0.9 29 12/13/2025
7.0.8 23 12/15/2025
7.0.7 27 12/13/2025
7.0.5 33 12/13/2025
7.0.4 24 12/13/2025
7.0.3 21 12/15/2025
7.0.2 32 12/13/2025
7.0.1 27 12/20/2025
7.0.0 30 12/15/2025
7.0.0-rc.2.22476.2 19 12/15/2025
7.0.0-rc.1.22427.2 23 12/15/2025
7.0.0-preview.7.22376.6 19 12/13/2025
7.0.0-preview.6.22330.3 18 12/15/2025
7.0.0-preview.5.22303.8 17 12/15/2025
7.0.0-preview.4.22251.1 20 12/15/2025
7.0.0-preview.3.22178.4 19 12/15/2025
7.0.0-preview.2.22153.2 15 12/15/2025
7.0.0-preview.1.22109.13 18 12/14/2025
6.0.36 23 12/10/2025
6.0.35 23 12/15/2025
6.0.33 26 12/13/2025
6.0.32 27 12/14/2025
6.0.31 25 12/14/2025
6.0.30 23 12/15/2025
6.0.29 23 12/15/2025
6.0.28 30 12/13/2025
6.0.27 31 12/15/2025
6.0.26 29 12/13/2025
6.0.25 33 12/15/2025
6.0.24 27 12/13/2025
6.0.23 25 12/15/2025
6.0.22 25 12/13/2025
6.0.21 35 12/13/2025
6.0.20 31 12/15/2025
6.0.19 25 12/13/2025
6.0.18 28 12/13/2025
6.0.16 29 12/15/2025
6.0.15 26 12/15/2025
6.0.14 26 12/15/2025
6.0.13 26 12/20/2025
6.0.12 24 12/14/2025
6.0.11 23 12/15/2025
6.0.10 22 12/15/2025
6.0.9 28 12/15/2025
6.0.8 28 12/13/2025
6.0.7 23 12/15/2025
6.0.6 31 12/13/2025
6.0.5 22 12/15/2025
6.0.4 26 12/15/2025
6.0.3 30 12/15/2025
6.0.2 30 12/15/2025
6.0.1 27 12/13/2025
6.0.0 22 12/15/2025
6.0.0-rc.2.21480.10 20 12/13/2025
6.0.0-rc.1.21452.15 27 12/15/2025
6.0.0-preview.7.21378.6 24 12/15/2025
6.0.0-preview.6.21355.2 23 12/14/2025
6.0.0-preview.5.21301.17 26 12/10/2025
6.0.0-preview.4.21253.5 20 12/14/2025
6.0.0-preview.3.21201.13 24 12/16/2025
6.0.0-preview.2.21154.6 21 12/13/2025
6.0.0-preview.1.21103.6 17 12/13/2025
5.0.17 23 12/13/2025
5.0.16 20 12/13/2025
5.0.15 27 12/11/2025
5.0.14 19 12/15/2025
5.0.13 23 12/13/2025
5.0.12 27 12/13/2025
5.0.11 25 12/15/2025
5.0.10 24 12/15/2025
5.0.9 22 12/20/2025
5.0.8 24 12/13/2025
5.0.7 36 12/13/2025
5.0.6 20 12/15/2025
5.0.5 22 12/13/2025
5.0.4 23 12/13/2025
5.0.3 27 12/15/2025
5.0.2 24 12/13/2025
5.0.1 25 12/15/2025
5.0.0 21 12/15/2025
5.0.0-rc.2.20475.17 17 12/14/2025
5.0.0-rc.1.20451.17 20 12/14/2025
5.0.0-preview.8.20414.8 22 12/14/2025
5.0.0-preview.7.20365.19 29 12/13/2025
5.0.0-preview.6.20312.15 20 12/15/2025
5.0.0-preview.5.20279.2 23 12/15/2025
5.0.0-preview.4.20257.10 20 12/13/2025
5.0.0-preview.3.20215.14 18 12/15/2025
5.0.0-preview.2.20167.3 20 12/15/2025
5.0.0-preview.1.20124.5 19 12/15/2025
3.1.32 23 12/15/2025
3.1.31 26 12/13/2025
3.1.30 23 12/14/2025
3.1.29 20 12/14/2025
3.1.28 28 12/13/2025
3.1.27 24 12/13/2025
3.1.26 25 12/14/2025
3.1.25 30 12/16/2025
3.1.24 29 12/13/2025
3.1.23 36 12/13/2025
3.1.22 18 12/09/2025
3.1.21 25 12/13/2025
3.1.20 17 12/14/2025
3.1.19 24 12/13/2025
3.1.18 23 12/15/2025
3.1.17 29 12/15/2025
3.1.16 19 12/15/2025
3.1.15 23 12/15/2025
3.1.14 22 12/13/2025
3.1.13 25 12/15/2025
3.1.12 17 12/16/2025
3.1.11 25 12/13/2025
3.1.10 25 12/15/2025
3.1.9 26 12/13/2025
3.1.8 24 12/13/2025
3.1.7 26 12/13/2025
3.1.6 24 12/15/2025
3.1.5 23 12/15/2025
3.1.4 22 12/13/2025
3.1.3 27 12/14/2025
3.1.2 20 12/13/2025
3.1.1 21 12/15/2025
3.1.0 24 12/11/2025
3.1.0-preview3.19555.2 23 12/13/2025
3.1.0-preview2.19528.8 17 12/21/2025
3.1.0-preview1.19508.20 24 12/15/2025
3.0.3 28 12/13/2025
3.0.2 27 12/13/2025
3.0.0 22 12/11/2025
3.0.0-rc1.19457.4 21 12/29/2025
3.0.0-preview9.19424.4 29 12/15/2025
3.0.0-preview8.19405.7 26 12/14/2025
3.0.0-preview7.19365.7 22 12/15/2025
3.0.0-preview6.19307.2 25 12/13/2025
3.0.0-preview5-19227-01 15 12/15/2025
3.0.0-preview4-19216-03 18 12/16/2025
3.0.0-preview3-19153-02 23 12/15/2025
3.0.0-preview-19075-0444 22 12/15/2025