Microsoft.AspNetCore.Mvc.NewtonsoftJson 9.0.0-rc.2.24474.3

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
9
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
10
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
11
NSwag.Commands
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
17
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
20
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
26
NSwag.Generation.AspNetCore
NSwag: The OpenAPI/Swagger API toolchain for .NET and TypeScript
32
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
23
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
24
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
25
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for API's built on ASP.NET Core
33

.NET 9.0

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