---
title: "クラスNewtonsoftLayoutServiceSerializer"
slug: "sitecore.layoutservice.client.newtonsoft.newtonsoftlayoutserviceserializer"
abstract: ""
---
# クラスNewtonsoftLayoutServiceSerializer

SitecoreレイアウトサービスのJSONシリアライズを担当します。

## 相続

System.Object

NewtonsoftLayoutServiceSerializer

### 実装

[ISitecoreLayoutSerializer](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.isitecorelayoutserializer.html)

#### **名前空間**:Sitecore。LayoutService.Client.Newtonsoft

##### **アセンブリ**:Sitecore。LayoutService.Client.Newtonsoft.dll

##### 構文論

public class NewtonsoftLayoutServiceSerializer : Object, ISitecoreLayoutSerializer

### コンストラクター

#### NewtonsoftLayoutServiceSerializer()

##### 宣言

public NewtonsoftLayoutServiceSerializer()

### 方法

#### CreateSerializerSettings()

JSONシリアライザーのデフォルト設定を取得します。

##### 宣言

public static JsonSerializerSettings CreateSerializerSettings()

##### 返還

種類

概要

Newtonsoft.Json.JsonSerializerSettings

Newtonsoft.Json.JsonSerializerSettingsのインスタンスで、Sitecoreレイアウトサービスのすべてのシリアライズデフォルトが適用されています。

#### Deserialize(String)

与えられたデータを[SitecoreLayoutResponseContent](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.sitecorelayoutresponsecontent.html)に非直列化します。

##### 宣言

public SitecoreLayoutResponseContent Deserialize(string data)

##### パラメータ

種類

名称

概要

System.String

データ

データからシリアライズを解除する。

##### 返還

種類

概要

SitecoreLayoutResponseContent

デシリアライズされた [SitecoreLayoutResponseContent](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.sitecorelayoutresponsecontent.html)。

### 実装

[ISitecoreLayoutSerializer](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.isitecorelayoutserializer.html)