using Jellyfin.Extensions.Json;
using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.Net.Http.Headers;
namespace Jellyfin.Api.Formatters;
/// 
/// Camel Case Json Profile Formatter.
/// 
public class CamelCaseJsonProfileFormatter : SystemTextJsonOutputFormatter
{
    /// 
    /// Initializes a new instance of the  class.
    /// 
    public CamelCaseJsonProfileFormatter() : base(JsonDefaults.CamelCaseOptions)
    {
        SupportedMediaTypes.Clear();
        SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.CamelCaseMediaType));
    }
}