Table of Contents

Class JsonConverterCollectionExtensions

Namespace
Cuemon.Extensions.AspNetCore.Text.Json.Converters
Assembly
Cuemon.Extensions.AspNetCore.Text.Json.dll

Extension methods for the System.Text.Json.Serialization.JsonConverter class.

public static class JsonConverterCollectionExtensions
Inheritance
Object
JsonConverterCollectionExtensions

Methods

AddHttpExceptionDescriptorConverter(ICollection<JsonConverter>, Action<ExceptionDescriptorOptions>)

Adds an HttpExceptionDescriptor JSON converter to the list.

public static ICollection<JsonConverter> AddHttpExceptionDescriptorConverter(this ICollection<JsonConverter> converters, Action<ExceptionDescriptorOptions> setup = null)

Parameters

converters ICollection<JsonConverter>

The ICollection{JsonConverter} to extend.

setup Action<ExceptionDescriptorOptions>

The ExceptionDescriptorOptions which may be configured.

Returns

ICollection<JsonConverter>

A reference to converters after the operation has completed.

AddStringValuesConverter(ICollection<JsonConverter>)

Adds an Microsoft.Extensions.Primitives.StringValues JSON converter to the list.

public static ICollection<JsonConverter> AddStringValuesConverter(this ICollection<JsonConverter> converters)

Parameters

converters ICollection<JsonConverter>

The ICollection{JsonConverter} to extend.

Returns

ICollection<JsonConverter>

A reference to converters after the operation has completed.