Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.10

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
41
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
40
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
38
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
37
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
36
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
36
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
35
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
34

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