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

@@ -90,6 +90,9 @@ namespace Emby.Server.Implementations.Data
_typeMapper = new TypeMapper();
_jsonOptions = JsonDefaults.GetOptions();
// GetItem throws NotSupportedException with this enabled, so hardcode false.
_jsonOptions.IgnoreNullValues = false;
DbFilePath = Path.Combine(_config.ApplicationPaths.DataPath, "library.db");
}