Amazon.Lambda.Serialization.SystemTextJson 2.2.0

Amazon.Lambda.Serialization.SystemTextJson

This package contains a custom Amazon.Lambda.Core.ILambdaSerializer implementation which uses System.Text.Json to serialize/deserialize .NET types in Lambda functions. This serializer targets .NET Core 3.1 so can not be used with the .NET Core 2.1 Lambda runtime.

If targeting .NET Core 3.1 this serializer is highly recommend over Amazon.Lambda.Serialization.Json and can significantly reduce cold start performance in Lambda.

This serializer can be present on the assembly or on the handler method. If you specify both, the method attribute takes priority.

Here is an example of setting this attribute on the assembly.

[assembly: Amazon.Lambda.Core.LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]

And this is how the method can be applied to the handler method.

[Amazon.Lambda.Core.LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
public Response CustomSerializerMethod(Request input)
{
    ...
}

Showing the top 20 packages that depend on Amazon.Lambda.Serialization.SystemTextJson.

Packages Downloads
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
5
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
2
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
1

.NET Core 3.1

.NET 6.0

Version Downloads Last updated
2.4.3 2 09/26/2024
2.4.2 1 09/28/2024
2.4.1 1 09/28/2024
2.4.0 0 10/26/2023
2.3.1 0 02/02/2023
2.3.0 4 05/13/2022
2.2.0 1 04/19/2022
2.1.0 0 10/21/2020
2.0.2 1 09/28/2024
2.0.1 1 09/29/2024
2.0.0 1 09/28/2024
1.0.0 1 09/30/2024