Skip to content

Commit

Permalink
Ignore null Dynamo attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Asura5 committed Apr 26, 2023
1 parent 5a0d283 commit f5cd496
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ private static JsonSerializerOptions CreateJsonOptions()
var options = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true
WriteIndented = true,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
};
options.Converters.Add(new JsonStringEnumConverter());
return options;
Expand Down

0 comments on commit f5cd496

Please sign in to comment.