Namespace Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json
The Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json namespace contains both types and extension methods that complements the Cuemon.Extensions.Newtonsoft.Json namespace while being an addition to the Microsoft.AspNetCore.Mvc namespace. Provides JSON formatters for ASP.NET Core that is powered by Newtonsoft.Json.
Availability: .NET 10 and .NET 9
Complements: Codebelt.Extensions.Newtonsoft.Json namespace 📘
Extension Methods
| Type | Ext | Methods |
|---|---|---|
| HttpExceptionDescriptorResponseHandler | ⬇️ | AddNewtonsoftJsonResponseHandler |
| JsonSerializerSettings | ⬇️ | Use{T} |
| IMvcBuilder | ⬇️ | AddNewtonsoftJsonFormatters, AddNewtonsoftJsonFormattersOptions |
| IMvcCoreBuilder | ⬇️ | AddNewtonsoftJsonFormatters, AddNewtonsoftJsonFormattersOptions |
Classes
- JsonSerializationInputFormatter
This class handles deserialization of JSON to objects using NewtonsoftJsonFormatter.
- JsonSerializationMvcOptionsSetup
A ConfigureOptions<TOptions> implementation which will add the JSON serializer formatters to MvcOptions.
- JsonSerializationOutputFormatter
This class handles serialization of objects to JSON using NewtonsoftJsonFormatter.
- JsonSerializerSettingsExtensions
Extension methods for the Newtonsoft.Json.JsonSerializerSettings class.
- MvcBuilderExtensions
Extension methods for the IMvcBuilder interface.
- MvcCoreBuilderExtensions
Extension methods for the IMvcCoreBuilder interface.