I am getting an error when I use map with List
Log("Response from server: " & res)
Dim parser As JSONParser
'
'res=[[17,"clie12345","Chila Perez","-"],[18,"client1235778","Carlos Fuentes","Santiago"]]
parser.Initialize(res)
Dim LISTA As List
LISTA = parser.NextArray 'returns a list with maps
For i = 0 To LISTA.Size - 1
Dim m As Map
m = LISTA.Get(i) 'Here this is the error--
'========CREANDO UNA LINEA EN LA TABLA VISTA==
ID = m.Get(0) & CRLF & m.Get(1) 'ID record; ID empresa
Name = m.Get(2) & CRLF & m.Get(3) 'Nombre y direccion
TblClientes.AddRow(Array As String(ID, Name))
Next
clientes_jobdone (B4A line: 107)
m = LISTA.Get(i)
java.lang.ClassCastException: java.util.ArrayList
at b4a.example.clientes._jobdone(clientes.java:484)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.keywords.Common$4.run(Common.java:930)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)