我想使用 JSON 结果。但我不明白这个案子。
{
"result": {
"employers": [
{
"nome": "Maria",
"id": 2,
"setor": "Setor1"
},
{
"nome": "Abreu",
"id": 4,
"setor": "Setor2"
}
]
}
}
和
private void button1_Click(object sender, EventArgs e)
{
Employers ll = JsonConvert.DeserializeObject<Employers>(jsonString);
Console.WriteLine(ll);
}