0
我想從URL解析JSON到basic4android中的android標籤。如何在basic4android中解析json?
我嘗試這一點,但不工作:
Sub Activity_Create(FirstTime As Boolean)
Dim Label1 As Label
Dim job As HttpJob
job.Initialize("Job", Me)
job.Download("http://api.tvmaze.com/shows/82")
If job.Success = True Then
Dim parser As JSONParser
parser.Initialize(job.GetString)
Dim root As Map = parser.NextObject
Dim name As String = root.Get("name")
Label1.Text = Title
End if
而不是「不工作」你應該告訴什麼問題。首先猜測是你應該使用'name'而不是'Title' –