I'm working with json.net to parse an array and what I'm trying to do is to assign pull the name/value pair out of the array and assign them to specific variables while parsing the jobject.
Here's what I've got in the array
[
{
"General": "At this time we do not have any frequent support requests."
},
{
"Support": "For support inquires, please see our support page."
}
]
And here's what I've got in the C#:
WebResponse objResponse;
WebRequest objRequest = HttpWebRequest.Create(dest);
objResponse = objRequest.GetResponse();
using (StreamReader reader = new StreamReader(objResponse.GetResponseStream()))
{
string json = reader.ReadToEnd();
JArray a = JArray.Parse(json);
//Here's where I'm stumped
}
I'm fairly new to json and json.net so it might be a basic solution for someone else. I basically just need to assign the name/value pairs in a foreach loop so that I can output the data on the front-end. Has anyone done this before?