Return camelcase json from web api 2
In the WebApiConfig.cs
file add the following lines and make sure the Newtonsoft Json.NET library is referenced.
JsonMediaTypeFormatter JsonFormatter = config.Formatters.OfType<JsonMediaTypeFormatter>().First();
JsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();