Table of Contents

Codebelt.Extensions.AspNetCore.Newtonsoft.Json.Converters Namespace

The Codebelt.Extensions.AspNetCore.Newtonsoft.Json.Converters namespace registers ASP.NET Core-specific Json.NET converters — ProblemDetails, HttpExceptionDescriptor, and StringValues — into a converter collection. Use this namespace in ASP.NET Core applications where HTTP error responses must serialize through the standard IHttpExceptionDescriptorResponseFormatter pipeline. Start with AddHttpExceptionDescriptorConverter on ICollection<JsonConverter> to register an HttpExceptionDescriptor converter with optional options; AddProblemDetailsConverter and AddStringValuesConverter handle the remaining ASP.NET Core types.

Availability: .NET 10 and .NET 9

Complements: Codebelt.Extensions.Newtonsoft.Json.Converters namespace 📘

Extension Members

Type Ext Methods
ICollection<JsonConverter> ⬇️ AddHttpExceptionDescriptorConverter, AddProblemDetailsConverter, AddStringValuesConverter

Classes

JsonConverterCollectionExtensions

Extension methods for the Newtonsoft.Json.JsonConverter class.