Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. {
  2. "QnACollection": {
  3. "QnA": [
  4. {
  5. "id": 11,
  6. "question": "What was your childhood nickname?"
  7. },
  8. {
  9. "id": 12,
  10. "question": "In what city was your mother born?"
  11. },
  12. {
  13. "GroupType": "RUN",
  14. "id": 45,
  15. "question": "What is the first name?"
  16. }
  17. ]
  18. }
  19. }
  20.  
  21. var value = (string)JObject.Parse(json)
  22. .Descendants().OfType<JProperty>()
  23. .FirstOrDefault(p => p.Name == "GroupType");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement