Class JsonLayoutServiceSerializer

Version: 21.x

Contract that supports serialization for the Sitecore layout service.

Inheritance
System.Object
JsonLayoutServiceSerializer
Namespace: Sitecore.LayoutService.Client.Json
Assembly: Sitecore.LayoutService.Client.Json.dll
Syntax
RequestResponse
public class JsonLayoutServiceSerializer : Object, ISitecoreLayoutSerializer

Constructors

JsonLayoutServiceSerializer(IEnumerable<JsonConverter>)

Initializes a new instance of the JsonLayoutServiceSerializer class.

Declaration
RequestResponse
public JsonLayoutServiceSerializer(IEnumerable<JsonConverter> converters)
Parameters
TypeNameDescription
System.Collections.Generic.IEnumerable<System.Text.Json.Serialization.JsonConverter>converters

List of System.Text.Json.Serialization.JsonConverter`1.

Methods

Deserialize(String)

Deserializes the given data to a SitecoreLayoutResponseContent.

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

The data to deserialize.

Returns

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,