If you use Web API to grab data for your JavaScript client then you know the data returned is by default in Pascal Case. This means when you are accessing your data or binding to the data that it's in a format that does not go well with the mostly wide used JavaScript naming convention. You can solve this pretty easily by using Json.NET as your default serializer. All you need to do is reference the Json.NET package via Nuget then add the following code to your Global.asax application start method.

// Setup the JSON formatter.
var serializerSettings = new JsonSerializerSettings();
serializerSettings.Converters.Add(new IsoDateTimeConverter());
serializerSettings.Converters.Add(new StringEnumConverter { CamelCaseText = true });
serializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();

// Add the JSON formatter then remove the XML formatter.
GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings = serializerSettings;

Now all the JSON returned by your Web API will be in Camel Case rather than Pascal Case. Another tip is if you want your JSON formatted more human readable during debugging then add this bit of code.

// Check to see if debugging is enabled.
if (HttpContext.Current.IsDebuggingEnabled)
// Indent the formatting of the JSON so it's easier to view.
serializerSettings.Formatting = Formatting.Indented;

Now when you are debugging your JSON will be much easier to read.

Rock on and Become Epic!