Skip to content

Commit

Permalink
Ignore null values in settings json
Browse files Browse the repository at this point in the history
  • Loading branch information
geloczi committed Jan 5, 2022
1 parent b4d5cbe commit cebc098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Utils/ObjectStorage/JsonStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ public class JsonStorage : IObjectStorage
public string Folder { get; }
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings()
{
Formatting = Formatting.Indented
Formatting = Formatting.Indented,
NullValueHandling = NullValueHandling.Ignore
};

public JsonStorage(string folder)
Expand Down

0 comments on commit cebc098

Please sign in to comment.