基本上,我正在尝试使用4chan JSON API解析来自4chan线程的注释.https://github.com/4chan/4chan-API
基本上,有一个名为input的富文本框,另一个名为post_text_box.什么即时试图做的是让这个JSON从输入文本框中输入和评论是从JSON提取并显示在输出文本框中4chan的线程
但是,每当我尝试点击Go按钮时都没有任何反应.
到目前为止,这是我的代码
Imports System.Web.Script.Serialization
Imports Newtonsoft.Json
Imports Newtonsoft.Json.Linq
Public Class Form1
Private Sub start_button_Click(sender As Object, e As EventArgs) Handles start_button.Click
Dim j As Object = New JavaScriptSerializer().Deserialize(Of Post)(input.Text)
post_text_box.Text = j.com
End Sub
End Class
Public Class Rootobject
Public Property posts() As Post
End Class
Public Class Post
Public Property no As Integer
Public Property now As String
Public Property name As String
Public Property com As String
Public Property filename As String
Public …Run Code Online (Sandbox Code Playgroud)