Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.14

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
59
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
58
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
57
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
57
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
55
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
54
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
53
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
53
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 Newtsonsoft Json serializer behaviors
51
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
51

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