Show / Hide Table of Contents

Class LambdaSystemTextJsonSerializer

Custom ILambdaJsonSerializer implementation which uses System.Text.Json.JsonSerializer for serialization.

Inheritance
System.Object
Amazon.Lambda.Serialization.SystemTextJson.AbstractLambdaJsonSerializer
Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer
LambdaSystemTextJsonSerializer
Implements
ILambdaJsonSerializer
Namespace: LambdaSharp.Serialization
Assembly: LambdaSharp.dll
Syntax
public class LambdaSystemTextJsonSerializer : DefaultLambdaJsonSerializer, ILambdaJsonSerializer, ILambdaSerializer

Constructors

LambdaSystemTextJsonSerializer()

Constructs instance of serializer.

Declaration
public LambdaSystemTextJsonSerializer()

LambdaSystemTextJsonSerializer(Action<JsonSerializerOptions>)

Constructs instance of serializer.

Declaration
public LambdaSystemTextJsonSerializer(Action<JsonSerializerOptions> customizer)
Parameters
Type Name Description
System.Action<System.Text.Json.JsonSerializerOptions> customizer

A callback to customize the serializer settings.

Methods

Deserialize(Stream, Type)

The Deserialize(Stream, Type) method deserializes the JSON object from a string.

Declaration
public object Deserialize(Stream stream, Type type)
Parameters
Type Name Description
System.IO.Stream stream

Stream to serialize.

System.Type type

The type to instantiate.

Returns
Type Description
System.Object

Deserialized instance.

Implements

ILambdaJsonSerializer
In This Article
Back to top Generated by DocFX