Created
April 15, 2016 09:41
-
-
Save beachside-project/2e73aba250a1e059c8896724cb87f343 to your computer and use it in GitHub Desktop.
jsonDemo main2 JsonSerializerSettings - CamelCase
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
//Jsonにインデントつけるには... +JsonSerializerSettingsでキャメルケース出力 | |
var shinobuJsonWithIndention = JsonConvert.SerializeObject(shinobu, Formatting.Indented, new JsonSerializerSettings() | |
{ | |
ContractResolver = new CamelCasePropertyNamesContractResolver() | |
}); | |
Console.WriteLine(shinobuJsonWithIndention); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment