Class JsonSerializerSettingsExtensions
- Namespace
- Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json
- Assembly
- Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json.dll
Extension methods for the Newtonsoft.Json.JsonSerializerSettings class.
public static class JsonSerializerSettingsExtensions
- Inheritance
-
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
s1JsonSerializerSettingsThe Newtonsoft.Json.JsonSerializerSettings to extend.
setupAction<T>The Newtonsoft.Json.JsonSerializerSettings which need to be configured.
Type Parameters
TThe type of the Newtonsoft.Json.JsonSerializerSettings to use.