iterating json elements in c#
I have got the following json returned from a service :
{
responseHeader: {
status: 0,
QTime: 1
},
spellcheck: {
suggestions: [
"at",
{
numFound: 2,
startOffset: 0,
endOffset: 2,
suggestion: [
"at least five tons of glitter alone had gone into it
before them and",
"at them the designer of the gun had clearly not been
instructed to beat"
]
},
"collation",
"(at least five tons of glitter alone had gone into it before them
and)"
]
}
}
I need to create in c# a List of what inside the "suggestion" element.
What is the best way?
What are the elements not surrounded by "". Shouldn't all json element be
surrounded by ""? Thanks.
No comments:
Post a Comment