Class JsonSerializerSettingsExtensions

Version: 21.x

Extensions to support JSON serializer settings.

Inheritance
System.Object
JsonSerializerSettingsExtensions
Namespace: Sitecore.LayoutService.Client.Newtonsoft.Extensions
Assembly: Sitecore.LayoutService.Client.Newtonsoft.dll
Syntax
RequestResponse
public static class JsonSerializerSettingsExtensions : Object

Methods

SetDefaults(JsonSerializerSettings)

Sets all defaults for serialization with the Sitecore layout service.

Declaration
RequestResponse
public static JsonSerializerSettings SetDefaults(this JsonSerializerSettings settings)
Parameters
TypeNameDescription
Newtonsoft.Json.JsonSerializerSettingssettings

The instance of Newtonsoft.Json.JsonSerializerSettings to update.

Returns
TypeDescription
Newtonsoft.Json.JsonSerializerSettings

The updated settings.

Do you have some feedback for us?

If you have suggestions for improving this article,