You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use custom serialization options in the new Amazon.Lambda.Serialization.SystemTextJson.LambdaJsonSerializer. It looks like they are ignored in Debug mode (LAMBDA_NET_SERIALIZER_DEBUG = true).
public class LambdaSerializer : Amazon.Lambda.Serialization.SystemTextJson.LambdaJsonSerializer
{
public LambdaSerializer() : base(Customizer) { }
private static void Customizer(JsonSerializerOptions options)
{
options.Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping;
}
}
Version 2.0.0 of Amazon.Lambda.Serialization.SystemTextJson is out with the change. Main take away it update the serializer class to be DefaultLambdaJsonSerializer.
I am trying to use custom serialization options in the new
Amazon.Lambda.Serialization.SystemTextJson.LambdaJsonSerializer
. It looks like they are ignored in Debug mode (LAMBDA_NET_SERIALIZER_DEBUG = true).aws-lambda-dotnet/Libraries/src/Amazon.Lambda.Serialization.SystemTextJson/LambdaJsonSerializer.cs
Lines 74 to 88 in 65ba2c9
The text was updated successfully, but these errors were encountered: