我用VB向服務器 POST資訊,回傳的結果是JSON格式保存在文本框1 里。
下面是舉個例子說明
POST http://XXXXXXXXX/get.htm HTTP/1.1
Content-Length: 66
Content-Type: application/x-www-form-urlencoded
Host: 60.10.25.153:10060
Connection: Keep-Alive
User-Agent: android-async-http/1.4.3 (http://loopj.com/android-async-http)
Accept-Encoding: gzip
city=XXXX&receive=2&page=1&No=&shardingId=41
如何使vb讀取文本框里的json代碼,使其顯示其中部分專案排列出來
比如 回傳10個陣列,只顯示每個陣列中的其中固定的cust和proce數值往下排列,其他json數值屏蔽掉
請高手幫忙。
{
"result": {
"code": 1,
"Desc": "呼叫成功!"
},
"data": [
{
"Type": 1,
"cust": "11766938",
"Time": "2018-12-11 18:00:00",
"flag": 0,
"operId": "11724512",
"proce": 5283,
},
{
"Type": 1,
"cust": "81206117",
"Time": "2018-12-11 18:00:00",
"flag": 0,
"operId": "11724512",
"proce": 4802,
}
]
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/42093.html
標籤:VB基礎類
