diff options
| author | crobibero <cody@robibe.ro> | 2020-08-23 07:48:12 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-08-23 07:48:12 -0600 |
| commit | 340f83c3f5e0f42e7b02be0e4402e2039f8fe734 (patch) | |
| tree | 098adec7e4b207bd055fecf417655cb863f09f8f /MediaBrowser.Common/Json/JsonDefaults.cs | |
| parent | f9bb79285b672e63054b4ab1b49b744606851c34 (diff) | |
Ignore null json values
Diffstat (limited to 'MediaBrowser.Common/Json/JsonDefaults.cs')
| -rw-r--r-- | MediaBrowser.Common/Json/JsonDefaults.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Json/JsonDefaults.cs b/MediaBrowser.Common/Json/JsonDefaults.cs index 0a661934e..891715b3d 100644 --- a/MediaBrowser.Common/Json/JsonDefaults.cs +++ b/MediaBrowser.Common/Json/JsonDefaults.cs @@ -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()); |
