mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			647 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			647 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using Jellyfin.Extensions.Json;
 | 
						|
using Microsoft.AspNetCore.Mvc.Formatters;
 | 
						|
using Microsoft.Net.Http.Headers;
 | 
						|
 | 
						|
namespace Jellyfin.Api.Formatters;
 | 
						|
 | 
						|
/// <summary>
 | 
						|
/// Camel Case Json Profile Formatter.
 | 
						|
/// </summary>
 | 
						|
public class CamelCaseJsonProfileFormatter : SystemTextJsonOutputFormatter
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// Initializes a new instance of the <see cref="CamelCaseJsonProfileFormatter"/> class.
 | 
						|
    /// </summary>
 | 
						|
    public CamelCaseJsonProfileFormatter() : base(JsonDefaults.CamelCaseOptions)
 | 
						|
    {
 | 
						|
        SupportedMediaTypes.Clear();
 | 
						|
        SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.CamelCaseMediaType));
 | 
						|
    }
 | 
						|
}
 |