以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]这种返回的值是什么? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=164153) |
-- 作者:zto001 -- 发布时间:2021/4/27 21:13:00 -- [求助]这种返回的值是什么? 代码: Dim hc As New HttpClient("http://tool.bitefu.net/kuaidi/?sn=9864887657626&code=youzhengguonei") Dim ret As String = hc.GetData() Output .Show(ret) 返回如下 {"message":"ok","nu":"9864887657626","ischeck":"1","condition":"F00","com":"youzhengguonei","status":1,"state":"3","data":[{"time":"2021-04-24 18:34:17","ftime":"2021-04-24 18:34:17","context":"\\u9000\\u56de\\u59a5\\u6295","location":""},{"time":"2021-04-24 18:34:00","ftime":"2021-04-24 18:34:00","context":"\\u3010\\u957f\\u6c99\\u53bf\\u8fdc\\u5927\\u8def\\u63fd\\u6295\\u90e8\\u3011\\u5b89\\u6392\\u6295\\u9012,\\u6295\\u9012\\u5458:\\u5218\\u9996\\u56fd,\\u7535\\u8bdd:18075110041,\\u63fd\\u6295\\u90e8\\u7535\\u8bdd:0731-83290769","location":""}这种是什么?怎么解码? 我复制到json解析里面,自动变成了中文,通过代码要怎么变? {
"message":"ok", "nu":"9864887657626", "ischeck":"1", "condition":"F00", "com":"youzhengguonei", "status":1, "state":"3", "data":[ { "time":"2021-04-24 18:34:17", "ftime":"2021-04-24 18:34:17", "context":"退回妥投", "location":"" }, |
-- 作者:有点蓝 -- 发布时间:2021/4/27 21:15:00 -- 直接解析就行了,没那么复杂 Dim ret As String = hc.GetData() Output .Show(ret) Dim jo As JObject = JObject.Parse(ret) Output.Show(jo.tostring)
|