Class JsonLayoutServiceSerializer

Version: 21.x

Contract that supports serialization for the Sitecore layout service.

Inheritance

System.Object

JsonLayoutServiceSerializer

Implements

ISitecoreLayoutSerializer

Namespace: Sitecore.LayoutService.Client.Json

Assembly: Sitecore.LayoutService.Client.Json.dll
Syntax
public class JsonLayoutServiceSerializer : Object, ISitecoreLayoutSerializer

Constructors

JsonLayoutServiceSerializer(IEnumerable)

Initializes a new instance of the JsonLayoutServiceSerializer class.

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

<

System.Text.Json.Serialization.JsonConverter

>
convertersList of System.Text.Json.Serialization.JsonConverter`1.

Methods

Deserialize(String)

Deserializes the given data to a SitecoreLayoutResponseContent.

Declaration
public SitecoreLayoutResponseContent Deserialize(string data)
Parameters
TypeNameDescription
System.StringdataThe data to deserialize.
Returns
TypeDescription
SitecoreLayoutResponseContentThe deserialized SitecoreLayoutResponseContent.

Implements

ISitecoreLayoutSerializer

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