Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created October 25, 2015 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/04c76d6cfd83ff42d498 to your computer and use it in GitHub Desktop.
Save justinyoo/04c76d6cfd83ff42d498 to your computer and use it in GitHub Desktop.
var config = GlobalConfiguration.Configuration;
var jsonFormatter = new JsonHalMediaTypeFormatter();
jsonFormatter
.SerializerSettings
.ContractResolver = new CamelCasePropertyNamesContractResolver();
config.Formatters.Insert(0, jsonFormatter);
config.Formatters.Insert(0, new XmlHalMediaTypeFormatter());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment