Selaa lähdekoodia

Making it work

BaronGreenback 4 vuotta sitten
vanhempi
sitoutus
dae6798a18

+ 0 - 2
Emby.Server.Implementations/ApplicationHost.cs

@@ -118,7 +118,6 @@ namespace Emby.Server.Implementations
 
         private readonly IFileSystem _fileSystemManager;
         private readonly IXmlSerializer _xmlSerializer;
-        private readonly IJsonSerializer _jsonSerializer;
         private readonly IStartupOptions _startupOptions;
         private readonly IPluginManager _pluginManager;
 
@@ -249,7 +248,6 @@ namespace Emby.Server.Implementations
             IServiceCollection serviceCollection)
         {
             _xmlSerializer = new MyXmlSerializer();
-            _jsonSerializer = new JsonSerializer();
 
             ServiceCollection = serviceCollection;
 

+ 1 - 1
MediaBrowser.Common/Json/JsonDefaults.cs

@@ -31,7 +31,7 @@ namespace MediaBrowser.Common.Json
             WriteIndented = false,
             DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
             NumberHandling = JsonNumberHandling.AllowReadingFromString,
-            
+            PropertyNameCaseInsensitive = true,
             Converters =
             {
                 new JsonGuidConverter(),