Tuesday, 26 March 2013

ASP.NET WebAPI Tip #3: camelCasing JSON

var formatters = GlobalConfiguration.Configuration.Formatters; var jsonFormatter = formatters.JsonFormatter; var settings = jsonFormatter.SerializerSettings; settings.Formatting = Formatting.Indented; settings.ContractResolver = new CamelCasePropertyNamesContractResolver();
crawled from : Odetocode

No comments:

Post a Comment