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
VisionFramework.Core
Package Description
567
VisionFramework.Core
Package Description
428
VisionFramework.Core
Package Description
390
VisionFramework.Core
Package Description
342
VisionFramework.ApiAuthorization
Package Description
308
VisionFramework.ApiAuthorization
Package Description
238
VisionFramework.ApiAuthorization
Package Description
234
VisionFramework.ApiAuthorization
Package Description
196
VisionFramework.ApiAuthorization
Package Description
156
VisionFramework.ApiAuthorization
Package Description
136
VisionFramework.Core
Package Description
124
VisionFramework.ApiAuthorization
Package Description
123
VisionFramework.ApiAuthorization
Package Description
70
VisionFramework.Core
Package Description
68
VisionFramework.ApiAuthorization
Package Description
65
VisionFramework.ApiAuthorization
Package Description
57
VisionFramework.Core
Package Description
50
VisionFramework.ApiAuthorization
Package Description
49
VisionFramework.ApiAuthorization
Package Description
47
VisionFramework.Core
Package Description
42

.NET 10.0

Version Downloads Last updated
10.0.0-preview.6.25358.103 35 07/24/2025
9.0.7 33 07/14/2025
9.0.4 28 07/08/2025
9.0.3 31 07/07/2025
9.0.2 33 07/11/2025
9.0.1 30 07/08/2025
9.0.0 29 07/08/2025
9.0.0-preview.4.24267.6 23 07/10/2025
9.0.0-preview.1.24081.5 29 07/10/2025
8.0.18 31 07/17/2025
8.0.10 27 07/08/2025
8.0.8 39 08/02/2025
8.0.7 85 07/07/2025
8.0.0-preview.2.23153.2 27 07/09/2025
7.0.0-preview.5.22303.8 22 07/10/2025
7.0.0-preview.4.22251.1 25 08/08/2025
7.0.0-preview.2.22153.2 30 07/10/2025
6.0.36 30 07/11/2025
6.0.29 29 07/08/2025
6.0.26 31 08/08/2025
6.0.25 25 07/08/2025
6.0.18 28 07/12/2025
6.0.10 30 07/11/2025
6.0.8 30 08/08/2025
6.0.2 28 07/11/2025
6.0.0-preview.6.21355.2 28 07/09/2025
5.0.0-preview.7.20365.19 27 07/09/2025
3.1.29 25 07/09/2025
3.1.28 28 07/10/2025
3.1.21 36 08/08/2025
3.1.8 27 07/08/2025
3.1.4 24 07/11/2025
3.1.0 28 07/11/2025
3.0.3 30 07/12/2025
3.0.0-rc1.19457.4 28 07/11/2025