json数据,我来自 HTTPWebResponse
[{ "testId":1, "测试名": "HTML", "MinScore是":20, "得分":40, "日期": "2014年12月2日", "状态": "通过"},{ "testId":1, "测试名": "JAVA", "MinScore是":20, "分数":10, "日期": "2014年12月2日", "状态": "FAILED"}]
HttpResponseMessage Response = await client.PostAsync("http://motivtechindia.com/quiz/ws/empquizs", content);
int statusCode = (int)Response.StatusCode;
string results = await Response.Content.ReadAsStringAsync();
MessageBox.Show(results);`enter code here`
Run Code Online (Sandbox Code Playgroud)
___________________________________________________________________________________________消息框显示:
[{ "testId":1, "测试名": "HTML", "MinScore是":20, "得分":40, "日期": "2014年12月2日", "状态": "通过"},{ "testId":1, "测试名": "JAVA", "MinScore是":20, "分数":10, "日期": "2014年12月2日", "状态": "FAILED"}]
现在请告诉我如何deserilise并在datagridview中显示它!