Android Question json parser help

francodlh

Member
Licensed User
Longtime User
i have some issu with this json format receive from DreamFactory store procedure

[{"idclientes":"1","nombre":"francodlh","clave":"franco"},{"idclientes":"3","nombre":"francodlh","clave":"franco"}]

next array, next object, next value, crash and show me an error, any idea???

im using a jsonparser
 

DonManfred

Expert
Licensed User
Longtime User
Note the json-tree online.

B4X:
Dim parser As JSONParser
parser.Initialize($"[{"idclientes":"1","nombre":"francodlh","clave":"franco"},{"idclientes":"3","nombre":"francodlh","clave":"franco"}]"$)
Dim root As List = parser.NextArray
For Each colroot As Map In root
Dim clave As String = colroot.Get("clave")
Dim idclientes As String = colroot.Get("idclientes")
Dim nombre As String = colroot.Get("nombre")
Next
 
Upvote 0
Top