json格式有没有这样的答案{ "id": "161e6e624c78acfd7fd783844bc0adfa38c5135feb9170c9e8a05094ac41f11a1d87552aae3cd6544cecf7f3b8162edee7c01f5785c14f5ed11e1eee14e28619", "name": "Geth/genom.minerpool.net/v1.8.0-unstable-8ec3861d/linux-amd64/go1.9.2", "caps": [ "eth/62", "eth/63" ], "network": { "localAddress": "192.168.1.3:8298", "remoteAddress": "213.32.53.162:31337" }, "protocols": { "eth": { "version": 63, "difficulty": 121712103143555595, "head": "0x7686acff7fa7560013bb6c7997c42d7f6adb0514277edbb7418e362b8e32bca2" } } },使请求脱盐的程序代码。public class per { //[JsonProperty("network")] public string localAddress { get; set; } public string id { get; set; } public string name { get; set; }}private void button2_Click(object sender, EventArgs e){ var peer = JsonConvert.DeserializeObject<List<per>>(richTextBox1.Text.ToString()); dataGridView2.DataSource = peers.Result;}问题是它没有在localAddres的datagridview中放置一个空白字段。我究竟做错了什么?
1 回答
- 1 回答
- 0 关注
- 355 浏览
添加回答
举报
0/150
提交
取消