Microsoft.AspNetCore.Mvc.NewtonsoftJson 10.0.0-preview.6.25358.103

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.Filters
Some additional useful filters for Swashbuckle.AspNetCore. This package replaces Swashbuckle.AspNetCore.Examples.
32
Swashbuckle.AspNetCore.Filters
Some additional useful filters for Swashbuckle.AspNetCore. This package replaces Swashbuckle.AspNetCore.Examples.
36
Swashbuckle.AspNetCore.Filters
Some additional useful filters for Swashbuckle.AspNetCore. This package replaces Swashbuckle.AspNetCore.Examples.
38
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
33
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
36
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
39
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
61
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
65
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
85
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtsonsoft Json serializer behaviors
31
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtsonsoft Json serializer behaviors
36
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtsonsoft Json serializer behaviors
37

.NET 10.0

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