Created
January 17, 2014 16:21
-
-
Save mgroves/8476272 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public class Friend | |
| { | |
| public string name { get; set; } | |
| public string occupation { get; set; } | |
| } | |
| public class Enemy | |
| { | |
| public string name { get; set; } | |
| public string characteristics { get; set; } | |
| public int? numEyes { get; set; } | |
| } | |
| public class RootObject | |
| { | |
| public string name { get; set; } | |
| public string occupation { get; set; } | |
| public List<Friend> friends { get; set; } | |
| public List<Enemy> enemies { get; set; } | |
| } |
This file contains hidden or 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
| { | |
| "name": "Tim", | |
| "occupation": "enchanter", | |
| "friends": [ | |
| {"name": "Arthur", "occupation": "king" }, | |
| {"name": "Sir Robin", "occupation": "knight" } | |
| ], | |
| "enemies": [ | |
| { "name": "rabbit", "characteristics": "vicious streak" }, | |
| { "name": "Black Beast of Aaaaarrrrrrggghhh", "numEyes": 24 } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment