Created
April 18, 2016 01:57
-
-
Save beachside-project/4bbd2877d81af642e2a5fd9d0b1c3e90 to your computer and use it in GitHub Desktop.
jsonDemo_ToJsonString
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
var shinobu = new Person() | |
{ | |
FirstName = "shinobu", | |
LastName = "oshino", | |
Age = 598, | |
Favorites = new[] { "golden chocolate", "pon de ring" }, | |
Phones = new List<Phone>() | |
{ | |
new Phone() {PhoneNumber = "000-000-111",ModelName = "Lumia"}, | |
new Phone() {PhoneNumber = "111-000-000",ModelName = "Nokia"} | |
} | |
}; | |
//スッキリ | |
var shinobuJson = shinobu.ToJsonString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment