Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.0-rc.1.25451.107

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
38
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
39
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
40
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
41
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
42
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
43
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
45
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
47
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
55
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
63
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
49
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
54
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
59
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
65

.NET 10.0

Version Downloads Last updated
10.0.0-rc.1.25451.107 1 09/09/2025
10.0.0-preview.7.25380.108 12 08/12/2025
10.0.0-preview.6.25358.103 12 07/15/2025
10.0.0-preview.5.25277.114 17 06/07/2025
10.0.0-preview.4.25258.110 24 05/13/2025
10.0.0-preview.3.25172.1 27 04/11/2025
10.0.0-preview.2.25164.1 29 04/02/2025
10.0.0-preview.1.25120.3 28 04/02/2025
9.0.9 1 09/09/2025
9.0.8 15 08/05/2025
9.0.7 34 07/08/2025
9.0.6 14 06/12/2025
9.0.5 22 05/14/2025
9.0.4 29 04/11/2025
9.0.3 150 03/15/2025
9.0.2 117 02/14/2025
9.0.1 36 02/07/2025
9.0.0 32 11/14/2024
9.0.0-rc.2.24474.3 32 10/16/2024
9.0.0-rc.1.24452.1 30 09/19/2024
9.0.0-preview.7.24406.2 41 08/19/2024
9.0.0-preview.6.24328.4 57 07/19/2024
9.0.0-preview.5.24306.11 55 07/20/2024
9.0.0-preview.4.24267.6 59 07/20/2024
9.0.0-preview.3.24172.13 56 07/20/2024
9.0.0-preview.2.24128.4 51 07/20/2024
9.0.0-preview.1.24081.5 56 07/20/2024
8.0.20 1 09/09/2025
8.0.19 13 08/05/2025
8.0.18 12 07/08/2025
8.0.17 16 06/10/2025
8.0.16 21 05/14/2025
8.0.15 27 04/10/2025
8.0.14 29 03/30/2025
8.0.13 30 03/30/2025
8.0.12 29 03/30/2025
8.0.11 34 11/14/2024
8.0.10 231 10/15/2024
8.0.8 224 08/19/2024
8.0.7 91 07/20/2024
8.0.6 95 06/27/2024
8.0.5 59 07/20/2024
8.0.4 66 07/20/2024
8.0.3 66 07/20/2024
8.0.2 135 02/15/2024
8.0.1 140 02/04/2024
8.0.0 52 07/20/2024
8.0.0-rc.2.23480.2 60 07/20/2024
8.0.0-rc.1.23421.29 54 07/20/2024
8.0.0-preview.7.23375.9 54 07/20/2024
8.0.0-preview.6.23329.11 64 07/20/2024
8.0.0-preview.5.23302.2 54 07/20/2024
8.0.0-preview.4.23260.4 53 07/20/2024
8.0.0-preview.3.23177.8 61 07/20/2024
8.0.0-preview.2.23153.2 54 07/20/2024
8.0.0-preview.1.23112.2 54 07/20/2024
7.0.20 52 07/20/2024
7.0.19 58 07/20/2024
7.0.18 59 07/20/2024
7.0.17 56 07/20/2024
7.0.16 57 07/20/2024
7.0.15 60 07/20/2024
7.0.14 61 07/20/2024
7.0.13 62 07/20/2024
7.0.12 58 07/20/2024
7.0.11 60 07/20/2024
7.0.10 68 07/20/2024
7.0.9 49 07/20/2024
7.0.8 58 07/20/2024
7.0.7 60 07/20/2024
7.0.5 49 07/20/2024
7.0.4 70 07/20/2024
7.0.3 118 02/04/2024
7.0.2 60 07/20/2024
7.0.1 56 07/20/2024
7.0.0 63 02/04/2024
7.0.0-rc.2.22476.2 57 07/20/2024
7.0.0-rc.1.22427.2 53 07/20/2024
7.0.0-preview.7.22376.6 51 07/20/2024
7.0.0-preview.6.22330.3 51 07/20/2024
7.0.0-preview.5.22303.8 53 07/20/2024
7.0.0-preview.4.22251.1 69 07/20/2024
7.0.0-preview.3.22178.4 59 07/20/2024
7.0.0-preview.2.22153.2 52 07/20/2024
7.0.0-preview.1.22109.13 56 07/20/2024
6.0.36 34 11/14/2024
6.0.35 29 10/19/2024
6.0.33 39 08/19/2024
6.0.32 53 07/20/2024
6.0.31 59 07/20/2024
6.0.30 58 07/20/2024
6.0.29 55 07/20/2024
6.0.28 56 07/20/2024
6.0.27 60 07/20/2024
6.0.26 64 07/20/2024
6.0.25 56 07/20/2024
6.0.24 58 07/20/2024
6.0.23 53 07/20/2024
6.0.22 55 07/20/2024
6.0.21 55 07/20/2024
6.0.20 54 07/20/2024
6.0.19 55 07/20/2024
6.0.18 54 07/20/2024
6.0.16 52 07/20/2024
6.0.15 58 07/20/2024
6.0.14 55 07/20/2024
6.0.13 54 07/20/2024
6.0.12 51 07/20/2024
6.0.11 58 07/20/2024
6.0.10 55 07/20/2024
6.0.9 53 07/20/2024
6.0.8 54 07/20/2024
6.0.7 57 07/20/2024
6.0.6 50 07/20/2024
6.0.5 46 07/20/2024
6.0.4 59 07/19/2024
6.0.3 77 02/05/2024
6.0.2 53 07/19/2024
6.0.1 48 07/19/2024
6.0.0 49 07/19/2024
6.0.0-rc.2.21480.10 59 07/19/2024
6.0.0-rc.1.21452.15 59 07/19/2024
6.0.0-preview.7.21378.6 53 07/19/2024
6.0.0-preview.6.21355.2 53 07/19/2024
6.0.0-preview.5.21301.17 55 07/19/2024
6.0.0-preview.4.21253.5 56 07/19/2024
6.0.0-preview.3.21201.13 62 07/19/2024
6.0.0-preview.2.21154.6 53 07/19/2024
6.0.0-preview.1.21103.6 62 07/19/2024
5.0.17 62 07/19/2024
5.0.16 64 07/19/2024
5.0.15 61 07/19/2024
5.0.14 56 07/19/2024
5.0.13 52 07/19/2024
5.0.12 54 07/19/2024
5.0.11 55 07/19/2024
5.0.10 67 07/19/2024
5.0.9 59 07/19/2024
5.0.8 57 07/19/2024
5.0.7 51 07/19/2024
5.0.6 58 07/19/2024
5.0.5 53 07/19/2024
5.0.4 58 07/19/2024
5.0.3 58 07/19/2024
5.0.2 64 07/19/2024
5.0.1 61 07/19/2024
5.0.0 58 07/19/2024
5.0.0-rc.2.20475.17 63 07/19/2024
5.0.0-rc.1.20451.17 48 07/19/2024
5.0.0-preview.8.20414.8 61 07/19/2024
5.0.0-preview.7.20365.19 50 07/19/2024
5.0.0-preview.6.20312.15 62 07/19/2024
5.0.0-preview.5.20279.2 53 07/19/2024
5.0.0-preview.4.20257.10 51 07/19/2024
5.0.0-preview.3.20215.14 51 07/19/2024
5.0.0-preview.2.20167.3 59 07/19/2024
5.0.0-preview.1.20124.5 58 07/19/2024
3.1.32 56 07/19/2024
3.1.31 62 07/19/2024
3.1.30 58 07/19/2024
3.1.29 56 07/19/2024
3.1.28 57 07/19/2024
3.1.27 60 07/19/2024
3.1.26 52 07/19/2024
3.1.25 54 07/19/2024
3.1.24 60 07/19/2024
3.1.23 60 07/19/2024
3.1.22 66 07/19/2024
3.1.21 52 07/19/2024
3.1.20 54 07/19/2024
3.1.19 68 07/19/2024
3.1.18 58 07/19/2024
3.1.17 58 07/19/2024
3.1.16 66 07/19/2024
3.1.15 56 07/19/2024
3.1.14 49 07/19/2024
3.1.13 53 07/19/2024
3.1.12 59 07/19/2024
3.1.11 66 07/19/2024
3.1.10 57 07/19/2024
3.1.9 60 07/19/2024
3.1.8 58 07/19/2024
3.1.7 68 07/19/2024
3.1.6 47 07/19/2024
3.1.5 51 07/19/2024
3.1.4 61 07/19/2024
3.1.3 56 07/19/2024
3.1.2 51 07/19/2024
3.1.1 55 07/19/2024
3.1.0 56 07/19/2024
3.1.0-preview3.19555.2 61 07/19/2024
3.1.0-preview2.19528.8 54 07/19/2024
3.1.0-preview1.19508.20 52 07/19/2024
3.0.3 53 07/19/2024
3.0.2 58 07/19/2024
3.0.0 61 07/19/2024
3.0.0-rc1.19457.4 56 07/19/2024
3.0.0-preview9.19424.4 58 07/19/2024
3.0.0-preview8.19405.7 56 07/19/2024
3.0.0-preview7.19365.7 59 07/19/2024
3.0.0-preview6.19307.2 56 07/19/2024
3.0.0-preview5-19227-01 63 07/19/2024
3.0.0-preview4-19216-03 50 07/19/2024
3.0.0-preview3-19153-02 60 07/19/2024
3.0.0-preview-19075-0444 55 07/19/2024