仅下载内容而非html

时间:2018-02-04 16:41:52

标签: json vb.net webclient

在链接Google drive link

我有像JSON的价值

    {  
   "APP_Name":"ThunderStorm",
   "Version":"2.0.0.0",
   "Download_URL":"PathToExe",
   "Release_Info":"Info"
}

在我的vb.net代码中,当我使用链接下载该字符串

  Dim client As New Net.WebClient    
     Dim Root_JSON As String = client.DownloadString("https://drive.google.com/open?id=1grin5l7VUa_Yw48H6ScFCKbMWv-Y-QpF")

我收到大量HTML数据。我只需要下载JSON值,所以我可以反序列化它

Dim o_Json As t_Update.JSON_Application = JsonConvert.DeserializeObject(Of JSON_Application)(Root_JSON)

0 个答案:

没有答案