Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class Response
  2. {
  3. public string Version {get;set;}
  4. public int StatusCode {get;set;}
  5. public object Result {get;set;}
  6. }
  7.  
  8. {
  9. "Version":"1.2.3",
  10. "StatusCode":200,
  11. "Result":
  12. {
  13. "Id":42,
  14. "QuestionText":"This is a test question",
  15. "QuestionImageUrl": "http://www.blah.com/test.png"
  16. }
  17. }
  18.  
  19. var result = JsonConvert.DeserializeObject<Response>(json);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement