Either use Newtonsoft.Json or Microsoft's JavaScriptSerializer, not both.
What you do now with the line
jss.Deserialize<dynamic>(result1)
you create an
IDictionary<string,object>
, where each
object
is again an
IDictionary<string,object>
.
To use Newtonsoft.Json, do something like this:
JObject json = JObject.Parse(result1);
foreach (JObject o in json["data"])
{
MyClass mc = new MyClass
{
id = o["id"].Value<string>(),
first_name = o["first_name "].Value<string>(),
last_name = o["last_name "].Value<string>(),
email = o["email"].Values<string>().ToArray()
};
}