windows phone调用api解析json前端显示

如题
这是我的api和json

http://300report.jumpw.com/api/getrole?

{
"Result":"OK",
"Role":
{
"RoleName":"张三",
"RoleLevel":23,
"JumpValue":1003,
"WinCount":50,
"MatchCount":80,
"UpdateTime":"2013-11-04 14:45:00"
}

    这是我现在的情况
    private async void chaxunbutton_Click(object sender, RoutedEventArgs e)
    {
        HttpClient hc = new HttpClient();
        var task = await
        hc.GetAsync("http://300report.jumpw.com/api/getrole?");

        {

            JObject jobject = JObject.Parse("{\"角色名\":\"\" \"等级\":\"\"\"节操值\":\"\"\"胜场数\":\"\"\"总场数\":\"\"\"更新日期\":\"\"}");
            JToken token = jobject["http://300report.jumpw.com/api/getrole?"];
            ListBox<string> listview = new ListBox<string>;
            foreach (JToken t in token)
            {
                listView.Add(t.ToString());
            }

求大触救救我这个萌新

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐