Hola, usando el json viewer me da la siguiente esctructura:
B4X:
Dim parser As JSONParser
parser.Initialize(j.GetString)
Dim Root As List = parser.NextArray
For Each colroot As Map In Root
Dim password As String = colroot.Get("password")
Dim tel As String = colroot.Get("tel")
Dim id As Int = colroot.Get("id")
Dim telContacto As String = colroot.Get("telContacto")
Dim nombre As String = colroot.Get("nombre")
Dim email As String = colroot.Get("email")
Dim f_nacimiento As String = colroot.Get("f_nacimiento")
'Log(nombre) 'ok, se lee correcto
Next
Log("data 1 es: "&Root.Get(0))
Log("data 2 es: "&Root.Get(1))
Pero me gustaría poder obtener el nombre, algo así como:
Root.Get(0).nombre
o tipo Root.Get(0).Get("nombre")
pero no encuentro el modo correcto para hacerlo.
The JSON libraries, which are internal libraries, were updated. The new version is 1.20. There is a new JSON type which is used to convert maps or lists to json strings and vice versa, using the new As keyword. The idea is that you have a collection or string, you direct the compiler to treat...