Amazon.Lambda.Serialization.SystemTextJson 2.2.0

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Amazon.Lambda.Serialization.SystemTextJson --version 2.2.0
NuGet\Install-Package Amazon.Lambda.Serialization.SystemTextJson -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Amazon.Lambda.Serialization.SystemTextJson --version 2.2.0
#r "nuget: Amazon.Lambda.Serialization.SystemTextJson, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Amazon.Lambda.Serialization.SystemTextJson as a Cake Addin
#addin nuget:?package=Amazon.Lambda.Serialization.SystemTextJson&version=2.2.0

// Install Amazon.Lambda.Serialization.SystemTextJson as a Cake Tool
#tool nuget:?package=Amazon.Lambda.Serialization.SystemTextJson&version=2.2.0


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.

public Response CustomSerializerMethod(Request input)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (22)

Showing the top 5 NuGet packages that depend on Amazon.Lambda.Serialization.SystemTextJson:

Package Downloads
Amazon.Lambda.AspNetCoreServer The ID prefix of this package has been reserved for one of the owners of this package by

Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.


A structured template to create AWS Lambda in C#. It supports Logging, Dependency Injection and Configuration like ASP.NET Core projects do.


Serverless .NET for AWS - Lambda Library


Package Description


A module to optimize AWS Lambda function cold starts

GitHub repositories (15)

Showing the top 5 popular GitHub repositories that depend on Amazon.Lambda.Serialization.SystemTextJson:

Repository Stars
The Official C# .NET Driver for MongoDB
Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.
Rhino and Grasshopper developer sample code
Exceptionless clients for the .NET platform
.NET Client Library for Datadog APM
Version Downloads Last updated
2.4.3 99,359 4/25/2024
2.4.2 150,432 4/5/2024
2.4.1 827,442 2/16/2024
2.4.0 1,779,414 10/26/2023
2.3.1 6,783,716 2/2/2023
2.3.0 10,366,794 3/23/2022
2.2.0 5,023,411 11/5/2021
2.1.0 8,023,556 10/21/2020
2.0.2 578,154 9/16/2020
2.0.1 2,245,814 5/4/2020
2.0.0 1,324,427 4/28/2020
1.0.0 660,172 3/31/2020