I\'m trying to deserialize a Facebook friend\'s Graph API call into a list of objects. The JSON object looks like:
{\"data\":[{\"id\":\"518523721\",\"name\"
Very easily we can parse JSON content with the help of dictionary and JavaScriptSerializer. Here is the sample code by which I parse JSON content from an ashx file.
var jss = new JavaScriptSerializer();
string json = new StreamReader(context.Request.InputStream).ReadToEnd();
Dictionary sData = jss.Deserialize>(json);
string _Name = sData["Name"].ToString();
string _Subject = sData["Subject"].ToString();
string _Email = sData["Email"].ToString();
string _Details = sData["Details"].ToString();