Created
April 16, 2014 23:29
-
-
Save ashic/10942208 to your computer and use it in GitHub Desktop.
CamelCasedJson
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 class CamelCasedJsonAttribute : Attribute, IControllerConfiguration | |
| { | |
| public void Initialize(HttpControllerSettings controllerSettings, | |
| HttpControllerDescriptor controllerDescriptor) | |
| { | |
| controllerSettings.Formatters.JsonFormatter | |
| .SerializerSettings.ContractResolver = | |
| new CamelCasePropertyNamesContractResolver(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment