JavaScriptSerializer namespace issue
JavaScriptSerializer
is situated in System.Web.Extensions
Assembly. You should add it to your project references.
You can get this information in MSDN
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
System.Web.Script.Serialization.JavaScriptSerializer oSerializer = new System.Web.Script.Serialization.JavaScriptSerializer();var dict = oSerializer.Deserialize<Dictionary<string, object>>(responseFromServer);
This will help you to get the value
Add Reference System.Web.Extensions
then type using System.Web.Script.Serialization;
Now you should get JavaScriptSerializer valid.
You can use better approach by adding Newtonsoft.Json.dll through
Add Reference. See details here : http://json.codeplex.com/