-1
嘗試將路由信息解析爲類似下面的內容。 怎樣做解析表格中的數據
[
{
"destination": '10.110.2.192',
"gateway": '10.110.0.129'
"interface": 'eth2'
},
{
"destination": '10.110.2.64',
"gateway": '10.110.0.129'
"interface": 'eth2'
},
{
"destination": '10.110.1.0',
"gateway": '0.0.0.0'
"interface": 'eth0'
},
{
"destination": '10.110.1.128',
"gateway": '0.0.0.0'
"interface": 'eth2'
},
{
"destination": '0.0.0.0',
"gateway": '10.110.1.1'
"interface": 'eth0'
}
]
請提供原始數據。但最有可能的是直接解析你的數據是不合理的。 – iptizer