Created
August 30, 2017 21:08
-
-
Save osmyn/d3a2d1984ec538691779ebf04a987b2e to your computer and use it in GitHub Desktop.
JsonCamelCaseFormatter
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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
var formatters = GlobalConfiguration.Configuration.Formatters; | |
var jsonFormatter = formatters.JsonFormatter; | |
var settings = jsonFormatter.SerializerSettings; | |
settings.Formatting = Formatting.Indented; | |
settings.ContractResolver = new CamelCasePropertyNamesContractResolver(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment