Ignore null json values

This commit is contained in:
crobibero
2020-08-23 07:48:12 -06:00
parent f9bb79285b
commit 340f83c3f5
3 changed files with 7 additions and 1 deletions

View File

@@ -24,7 +24,8 @@ namespace MediaBrowser.Common.Json
var options = new JsonSerializerOptions
{
ReadCommentHandling = JsonCommentHandling.Disallow,
WriteIndented = false
WriteIndented = false,
IgnoreNullValues = true
};
options.Converters.Add(new JsonGuidConverter());