Table of Contents

Class JsonSerializerSettingsExtensions

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json
Assembly
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json.dll

Extension methods for the Newtonsoft.Json.JsonSerializerSettings class.

public static class JsonSerializerSettingsExtensions
Inheritance
Object
JsonSerializerSettingsExtensions

Methods

Use<T>(JsonSerializerSettings, Action<T>)

Instructs a JSON serializer to propagate the Newtonsoft.Json.JsonSerializerSettings specified by T on to s1 with an optional setup delegate.

public static void Use<T>(this JsonSerializerSettings s1, Action<T> setup = null)
    where T : JsonSerializerSettings, IParameterObject, new()

Parameters

s1 JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings to extend.

setup Action<T>

The Newtonsoft.Json.JsonSerializerSettings which need to be configured.

Type Parameters

T

The type of the Newtonsoft.Json.JsonSerializerSettings to use.