1. JsonSerializerSettingsExtensions

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
public static class JsonSerializerSettingsExtensions : Object

Methods

SetDefaults(JsonSerializerSettings)

Sets all defaults for serialization with the Sitecore layout service.

Declaration
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.

If you have suggestions for improving this article, let us know!