【发布时间】:2017-08-13 12:08:58
【问题描述】:
我想将 JSON 从 URL 解析为 basic4android 中的 android 标签。
我尝试了这个但没有用:
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
标签: android json basic4android