0

I want to parse JSON from URL to android label in basic4android .

I try this but not working :

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
James Z
  • 12,209
  • 10
  • 24
  • 44
  • Instead of "not working" you should tell what is the problem. First guess is that you should use `name` not `Title` – James Z Aug 13 '17 at 12:32

1 Answers1

0

You have Label1.Text = Title where it should be Label1.Text = name

andyr00d
  • 71
  • 3