Created
May 3, 2010 00:20
-
-
Save lynchjames/387582 to your computer and use it in GitHub Desktop.
Using CallJSON to convert JSON to the C# required for deserialization
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
public class work | |
{ | |
public virtual employer employer { get; set; } | |
public virtual position position { get; set; } | |
public virtual string start_date { get; set; } | |
public virtual string end_date { get; set; } | |
} | |
public class employer | |
{ | |
public virtual long id { get; set; } | |
public virtual string name { get; set; } | |
} | |
public class position | |
{ | |
public virtual long id { get; set; } | |
public virtual string name { get; set; } | |
} | |
public class education | |
{ | |
public virtual school school { get; set; } | |
public virtual year year { get; set; } | |
public virtual List<concentration> concentration { get; set; } | |
public virtual degree degree { get; set; } | |
} | |
public class school | |
{ | |
public virtual long id { get; set; } | |
public virtual string name { get; set; } | |
} | |
public class year | |
{ | |
public virtual long id { get; set; } | |
public virtual string name { get; set; } | |
} | |
public class concentration | |
{ | |
public virtual long id { get; set; } | |
public virtual string name { get; set; } | |
} | |
public class degree | |
{ | |
public virtual long id { get; set; } | |
public virtual string name { get; set; } | |
} | |
public class User | |
{ | |
public virtual string id { get; set; } | |
public virtual string name { get; set; } | |
public virtual string first_name { get; set; } | |
public virtual string last_name { get; set; } | |
public virtual string link { get; set; } | |
public virtual string about { get; set; } | |
public virtual List<work> work { get; set; } | |
public virtual List<education> education { get; set; } | |
public virtual string relationship_status { get; set; } | |
public virtual significant_other significant_other { get; set; } | |
public virtual string website { get; set; } | |
public virtual int timezone { get; set; } | |
public virtual string updated_time { get; set; } | |
} | |
public class significant_other | |
{ | |
public virtual string name { get; set; } | |
public virtual string id { get; set; } | |
} |
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
{ | |
"id": "220439", | |
"name": "Bret Taylor", | |
"first_name": "Bret", | |
"last_name": "Taylor", | |
"link": "http://www.facebook.com/btaylor", | |
"about": "Testing", | |
"work": [ | |
{ | |
"employer": { | |
"id": 20531316728, | |
"name": "Facebook" | |
}, | |
"position": { | |
"id": 111595812193665, | |
"name": "Director, Product" | |
}, | |
"start_date": "2009-08" | |
}, | |
{ | |
"employer": { | |
"id": 107618122602757, | |
"name": "FriendFeed" | |
}, | |
"position": { | |
"id": 115097051838153, | |
"name": "Founder & CEO" | |
}, | |
"start_date": "2007-10", | |
"end_date": "2009-08" | |
}, | |
{ | |
"employer": { | |
"id": 111122355573466, | |
"name": "Benchmark Capital" | |
}, | |
"position": { | |
"id": 108219395878755, | |
"name": "Entrepreneur in Residence" | |
}, | |
"start_date": "2007-06", | |
"end_date": "2007-09" | |
}, | |
{ | |
"employer": { | |
"id": 104958162837, | |
"name": "Google" | |
}, | |
"position": { | |
"id": 110433382317858, | |
"name": "Group Product Manager" | |
}, | |
"start_date": "2003-03", | |
"end_date": "2007-06" | |
} | |
], | |
"education": [ | |
{ | |
"school": { | |
"id": 112075895485567, | |
"name": "Acalanes High" | |
}, | |
"year": { | |
"id": 108220712545752, | |
"name": "1998" | |
} | |
}, | |
{ | |
"school": { | |
"id": 6192688417, | |
"name": "Stanford University" | |
}, | |
"year": { | |
"id": 108159685885670, | |
"name": "2002" | |
}, | |
"concentration": [ | |
{ | |
"id": 111986405495645, | |
"name": "Computer Science" | |
} | |
] | |
}, | |
{ | |
"school": { | |
"id": 6192688417, | |
"name": "Stanford University" | |
}, | |
"degree": { | |
"id": 113118705373612, | |
"name": "MS" | |
}, | |
"year": { | |
"id": 111069712250208, | |
"name": "2003" | |
}, | |
"concentration": [ | |
{ | |
"id": 111986405495645, | |
"name": "Computer Science" | |
} | |
] | |
} | |
], | |
"relationship_status": "Married", | |
"significant_other": { | |
"name": "Karen Padham Taylor", | |
"id": "1138911382" | |
}, | |
"website": "http://bret.appspot.com/", | |
"timezone": -7, | |
"updated_time": "2010-03-23T16:21:09+0000" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment