Explorar o código

Document JSON options change

ZadenRB %!s(int64=5) %!d(string=hai) anos
pai
achega
bb288e16cc

+ 1 - 0
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

@@ -73,6 +73,7 @@ namespace Jellyfin.Server.Extensions
                 .AddApplicationPart(typeof(StartupController).Assembly)
                 .AddJsonOptions(options =>
                 {
+                    // Setting the naming policy to null leaves the property names as-is when serializing objects to JSON.
                     options.JsonSerializerOptions.PropertyNamingPolicy = null;
                 })
                 .AddControllersAsServices();