mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Document JSON options change
This commit is contained in:
		
							parent
							
								
									72862d7b46
								
							
						
					
					
						commit
						bb288e16cc
					
				@ -73,6 +73,7 @@ namespace Jellyfin.Server.Extensions
 | 
				
			|||||||
                .AddApplicationPart(typeof(StartupController).Assembly)
 | 
					                .AddApplicationPart(typeof(StartupController).Assembly)
 | 
				
			||||||
                .AddJsonOptions(options =>
 | 
					                .AddJsonOptions(options =>
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
 | 
					                    // Setting the naming policy to null leaves the property names as-is when serializing objects to JSON.
 | 
				
			||||||
                    options.JsonSerializerOptions.PropertyNamingPolicy = null;
 | 
					                    options.JsonSerializerOptions.PropertyNamingPolicy = null;
 | 
				
			||||||
                })
 | 
					                })
 | 
				
			||||||
                .AddControllersAsServices();
 | 
					                .AddControllersAsServices();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user