1. NewtonsoftLayoutServiceSerializer

Class NewtonsoftLayoutServiceSerializer

Version: 21.x

Handles JSON serialization for the Sitecore layout service.

Inheritance
System.Object
NewtonsoftLayoutServiceSerializer
Namespace: Sitecore.LayoutService.Client.Newtonsoft
Assembly: Sitecore.LayoutService.Client.Newtonsoft.dll
Syntax
public class NewtonsoftLayoutServiceSerializer : Object, ISitecoreLayoutSerializer

Constructors

NewtonsoftLayoutServiceSerializer()

Declaration
public NewtonsoftLayoutServiceSerializer()

Methods

CreateSerializerSettings()

Gets the default settings for the JSON serializer.

Declaration
public static JsonSerializerSettings CreateSerializerSettings()
Returns
TypeDescription
Newtonsoft.Json.JsonSerializerSettings

An instance of Newtonsoft.Json.JsonSerializerSettings with all serialization defaults for the Sitecore layout service.

Deserialize(String)

Deserializes the given data to a SitecoreLayoutResponseContent.

Declaration
public SitecoreLayoutResponseContent Deserialize(string data)
Parameters
TypeNameDescription
System.Stringdata

The data to deserialize.

Returns

Implements

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