0
我有以下代碼,我需要在列表中使用它<>。 有人可以幫我嗎?json列表中的數據
protected void Page_Load(object sender, EventArgs e)
{
string url = "http://localhost:52148/api/federateds";
using (var w = new WebClient())
{
var json_data = string.Empty;
try
{
json_data = w.DownloadString(url);
}
catch (Exception) { }
}
List<federateds> federados = new ????;
}
已回答 - http://stackoverflow.com/questions/22191167/convert- JSON-字符串到C-尖銳對象列表 – AsafSavich