Created
January 21, 2013 02:38
-
-
Save jayhjkwon/4583270 to your computer and use it in GitHub Desktop.
Apply camelCase to JSON return message
This file contains hidden or 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
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