Table of Contents

Namespace Codebelt.Extensions.AspNetCore.Newtonsoft.Json.Formatters

The Codebelt.Extensions.AspNetCore.Newtonsoft.Json.Formatters namespace registers NewtonsoftJsonFormatterOptions and the IHttpExceptionDescriptorResponseFormatter into ASP.NET Core's IServiceCollection. Start with AddNewtonsoftJsonExceptionResponseFormatter on IServiceCollection to wire up exception-to-JSON formatting with the response formatter registered; use AddNewtonsoftJsonFormatterOptions when you only need the options registered without the response formatter.

Availability: .NET 10 and .NET 9

Complements: Codebelt.Extensions.Newtonsoft.Json namespace 📘

Extension Members

Type Ext Methods
IServiceCollection ⬇️ AddNewtonsoftJsonFormatterOptions, AddNewtonsoftJsonExceptionResponseFormatter

Classes

ServiceCollectionExtensions

Extension methods for the IServiceCollection interface.