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.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
63
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
62
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
62
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
61
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
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtsonsoft Json serializer behaviors
56
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
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
54
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
54
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
54
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
53
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtsonsoft Json serializer behaviors
53
Swashbuckle.AspNetCore.Newtonsoft
Swagger Generator opt-in component to support Newtonsoft.Json serializer behaviors
52

.NET 10.0

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