private static object FormatAsJson(IProvideExamples provider)
        {
            var examples = new Dictionary <string, object>()
            {
                {
                    "application/json", provider.GetExamples()
                }
            };

            return(ConvertToCamelCase(examples));
        }
Exemple #2
0
 private static object FormatAsJson(IProvideExamples provider)
 {
     return(JsonConvert.SerializeObject(provider.GetExamples()));
 }