Table of Contents

Class JsonSerializerOptionsExtensions

Namespace
Sitecore.AspNetCore.SDK.LayoutService.Client.Extensions
Assembly
Sitecore.AspNetCore.SDK.LayoutService.Client.dll

Extension methods for JsonSerializerOptions.

public static class JsonSerializerOptionsExtensions
Inheritance
JsonSerializerOptionsExtensions
Inherited Members

Methods

AddLayoutServiceDefaults(JsonSerializerOptions)

Adds the default Layout Service serialization settings to the provided JsonSerializerOptions.

public static JsonSerializerOptions AddLayoutServiceDefaults(this JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

The JsonSerializerOptions to add the default settings to.

Returns

JsonSerializerOptions

The modified JsonSerializerOptions with the default settings added.