Created
May 16, 2015 13:38
-
-
Save bojanrajkovic/4ea54b8049e418b6a249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.Configure<MvcOptions>(options => { | |
var jsonFormatters = options.OutputFormatters.OfType<JsonOutputFormatter>(); | |
foreach (var formatter in jsonFormatters) { | |
// Camel-case by default \o/ | |
formatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @bokanrajkovic,
above code for the MVC 6 Not working