/// <summary>
 /// Initializes a new instance of the <see cref="CamelCaseJsonProfileFormatter"/> class.
 /// </summary>
 public CamelCaseJsonProfileFormatter() : base(JsonDefaults.GetCamelCaseOptions())
 {
     SupportedMediaTypes.Clear();
     SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.CamelCaseMediaType));
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CamelCaseJsonProfileFormatter"/> class.
 /// </summary>
 public CamelCaseJsonProfileFormatter() : base(JsonDefaults.GetCamelCaseOptions())
 {
     SupportedMediaTypes.Clear();
     SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("application/json;profile=\"CamelCase\""));
 }