I got http.getstring == [{"place_return":",'','a place','b place','c place'"}] like this
and i have to insert it into autocomplete.setitem()
I tried like this ::
Dim p As JSONParser
p.Initialize(Job.GetString)
Dim list1 As List
list1 = p.NextArray
Dim map1 As Map
map1 = list1.Get(0)
AutoCompleteEditText1.SetItems(map1.Get("place_return"))
but it not works log show error = java.lang.ClassCastException: anywheresoftware.b4a.objects.collections.Map$MyMap cannot be cast to java.util.List
what is solution?
and i have to insert it into autocomplete.setitem()
I tried like this ::
Dim p As JSONParser
p.Initialize(Job.GetString)
Dim list1 As List
list1 = p.NextArray
Dim map1 As Map
map1 = list1.Get(0)
AutoCompleteEditText1.SetItems(map1.Get("place_return"))
but it not works log show error = java.lang.ClassCastException: anywheresoftware.b4a.objects.collections.Map$MyMap cannot be cast to java.util.List
what is solution?