// // Copyright (c) PlaceholderCompany. All rights reserved. // namespace Jellyfin.Api.Formatters; using Jellyfin.Extensions.Json; using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.Net.Http.Headers; /// /// 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)); } }