Table of Contents

Codebelt.Extensions.AspNetCore.Newtonsoft.Json Namespace

The Codebelt.Extensions.AspNetCore.Newtonsoft.Json namespace wires Newtonsoft.Json into ASP.NET Core's dependency injection container so exception responses serialize through IHttpExceptionDescriptorResponseFormatter without manual wiring. Use it in any ASP.NET Core project where structured JSON error responses must flow through Newtonsoft.Json serialization. Call AddMinimalNewtonsoftJsonOptions on IServiceCollection to register NewtonsoftJsonFormatterOptions and the response formatter in a single call — this is the primary entry point in this namespace.

Availability: .NET 10 and .NET 9

Complements: Codebelt.Extensions.Newtonsoft.Json namespace 📘

Extension Members

Type Ext Methods
IServiceCollection ⬇️ AddMinimalNewtonsoftJsonOptions

Classes

ServiceCollectionExtensions

Extension methods for the IServiceCollection interface.