Created
September 6, 2017 12:16
-
-
Save airyboy/707ec1c92f78116d141ecc78fcc30857 to your computer and use it in GitHub Desktop.
Newtonsoft.Json, transform names to camelCase through Contract Resolver option
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
JsonConvert.SerializeObject( | |
<YOUR OBJECT>, | |
new JsonSerializerSettings | |
{ | |
ContractResolver = new CamelCasePropertyNamesContractResolver() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment