我正在尝试将Facebook朋友的Graph API 调用反序列化为对象列表。JSON对象如下所示:
{"data":[{"id":"518523721","name":"ftyft"},
{"id":"527032438","name":"ftyftyf"},
{"id":"527572047","name":"ftgft"},
{"id":"531141884","name":"ftftft"},
{"id":"532652067","name"...
List<EFacebook> facebooks = new JavaScriptSerializer().Deserialize<List<EFacebook>>(result);
它不起作用,因为原始对象无效。我该如何反序列化?
Dictionary<string,string>
,签出:stackoverflow.com/questions/7699972/…–