Hi
I have JSON string like below
{
"version" : 2,
"id" :12
"results" : [
{
"company" : "Kaiser Permanente",
"city" : "Atlanta",
"state" : "GA",
"country" : "US",
}
,
{
"company" : "Southwest Airlines",
"city" : "Dallas",
"state" : "TX",
"country" : "US",
}
]
}
I want to parse JSON and retrive the company names from the above JSON string.
I was tryting to do like below but not successed
string str = objJSONResp.ToString();
var jss = new JavaScriptSerializer();
var dict = jss.Deserialize<Dictionary<string, dynamic>>(str);
for (int i = 0; i < 2; i++)
{
string comp=dict["results"]["company"];
}
Can anyone help me on this ??