Windows phone 8 我是JSON的新手,我不';我不知道如何在windows phone中执行序列化和反序列化

Windows phone 8 我是JSON的新手,我不';我不知道如何在windows phone中执行序列化和反序列化,windows-phone-8,json.net,Windows Phone 8,Json.net,get链接如下-http//192.156.120.192/Projects/cricket/index.php/api/api public class Player { public int playerId { get; set; } public string playerName { get; set; } public string specialization { get; set; } public string battingHand { ge

get链接如下-http//192.156.120.192/Projects/cricket/index.php/api/api

public class Player
{

    public int playerId { get; set; }
    public string playerName { get; set; }
    public string specialization { get; set; }
    public string battingHand { get; set; }
    public string bowlingHand { get; set; }
    public string bowlingType { get; set; }
    public object genericId { get; set; }
    public int homeTeamId { get; set; }
    public int eligibleTeams { get; set; }
    public object imageUrl { get; set; } 
}

public class RootObject 
{ 

    public string methodName { get; set; }
    public int errorCode { get; set; }
    public string errorMessage { get; set; }
    public List<Player> players { get; set; } 
}
公共类播放器
{
public int playerId{get;set;}
公共字符串播放器名称{get;set;}
公共字符串专门化{get;set;}
公共字符串与{get;set;}
公共字符串bowlingand{get;set;}
公共字符串bowlingType{get;set;}
公共对象泛型ID{get;set;}
public int homeTeamId{get;set;}
public int-eligibletems{get;set;}
公共对象imageUrl{get;set;}
}
公共类根对象
{ 
公共字符串methodName{get;set;}
公共int错误代码{get;set;}
公共字符串错误消息{get;set;}
公共列表玩家{get;set;}
}

我使用的是Json.NET,非常简单

// create a RootObject object
//..

string serializedRoot = JsonConvert.SerializeObject(myRootObject);

RootObject deserializedRoot = JsonConvert.DeserializeObject<Player>(serializedRoot);
//创建根对象
//..
string serializedRoot=JsonConvert.SerializeObject(myRootObject);
RootObject deserializedRoot=JsonConvert.DeserializeObject(serializedRoot);

您能简要介绍一下吗。在这里,我想根据Country检索玩家列表。我想你们可能需要阅读更多关于序列化和反序列化的内容。但换句话说,当您收到一个JSon序列化对象(通常是字符串)时,您需要做的是对其进行反序列化,这样您将检索其中的数据。例如,在你的例子中,如果你反序列化了一个根对象,你会找到玩家的列表,如果这个对象在序列化的时候有这个列表,那么Hnx..你能给我提供任何对我有用的链接吗..或者如果你有博客。。。