Skip to content

Instantly share code, notes, and snippets.

@jayhjkwon
Created January 21, 2013 02:38
Show Gist options
  • Save jayhjkwon/4583270 to your computer and use it in GitHub Desktop.
Save jayhjkwon/4583270 to your computer and use it in GitHub Desktop.
Apply camelCase to JSON return message
public static class JsonCamelCaseConfig
{
public static void RegisterConfig(HttpConfiguration config)
{
var json = config.Formatters.JsonFormatter;
json.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment