Microsoft.AspNetCore.Mvc.NewtonsoftJson 11.0.0-rc.2.26504.105

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
56
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
52
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
51
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
50
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
49
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
49
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
48
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
47
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
46

.NET 11.0

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