Created
December 4, 2015 15:45
-
-
Save pilgun/d48f95882b011d4e9b3f to your computer and use it in GitHub Desktop.
Json.Net example
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
[JsonObject] | |
public class Book | |
{ | |
public string Title { get; set; } | |
public string Author { get; set; } | |
public string Serialize() | |
{ | |
return JsonConvert.SerializeObject(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment