Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "QnACollection": {
- "QnA": [
- {
- "id": 11,
- "question": "What was your childhood nickname?"
- },
- {
- "id": 12,
- "question": "In what city was your mother born?"
- },
- {
- "GroupType": "RUN",
- "id": 45,
- "question": "What is the first name?"
- }
- ]
- }
- }
- var value = (string)JObject.Parse(json)
- .Descendants().OfType<JProperty>()
- .FirstOrDefault(p => p.Name == "GroupType");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement