Class LambdaSystemTextJsonSerializer
Custom ILambda
Inheritance
System.Object
Amazon.Lambda.Serialization.SystemTextJson.AbstractLambdaJsonSerializer
Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer
LambdaSystemTextJsonSerializer
Implements
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. |
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. |
stream | Stream to serialize. |
System. |
type | The type to instantiate. |
Returns
Type | Description |
---|---|
System. |
Deserialized instance. |