Skip to content

Commit

Permalink
Merge pull request #58 from LBHackney-IT/feature/add-nullable-seriali…
Browse files Browse the repository at this point in the history
…sation-dynamo

Ignore null Dynamo attributes
  • Loading branch information
Asura5 authored Apr 26, 2023
2 parents 5a0d283 + f5cd496 commit 4b8e030
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 4b8e030

Please sign in to comment.