How to parse json and read in vb.net

后端 未结 4 1112
独厮守ぢ
独厮守ぢ 2020-11-29 11:23

I have this code in my project:

Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim reader As StreamReader

request = DirectCast(Web         


        
4条回答
  •  [愿得一人]
    2020-11-29 11:57

    try this code :

    Dim jsonResulttodict = JsonConvert.DeserializeObject(Of Dictionary(Of String, Object))(rawresp)
    Dim firstItem = jsonResulttodict.item ("id") 
    

    hope it help you !!

提交回复
热议问题