我有以下字符串
string strFriends = {"data":[{"name":"Paras Dave","id":"535228534"},{"name":"Pradip Mehta","id":"537004435"},{"name":"Rajni Vanza","id":"545844068"}],"paging":{"next": "0"}};
现在我想将数据部分绑定到好友列表对象
var serializer = new JavaScriptSerializer();
List<FriendModel> friends= serializer.Deserialize<List<FriendModel>>(strFriends);
但上面会返回0条记录。
模型
public class FriendModel
{
string id { set; get; }
string name { set; get; }
}