FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV Mobile 2024
→
JSON Array
JSON Array
Iniciado por Mister RUAN, 14,ago. 2017 12:37 - No hay respuesta
Conéctese…
Mister RUAN
#1
Miembro registrado
209 mensajes
Popularité : +1 (1 vote)
Publicado el 14,agosto 2017 - 12:37
Good Afternoon
I have called a JSON Result with an array of vallues:
{
"User_Details"
:
{
"columns"
:
[
"ID"
,
"Name"
,
"Surname"
,
"Email"
]
,
"records"
:
[
[
1
,
"Name1"
,
"Surname1"
,
"mail1@email.com"
]
,
[
3
,
"Name2"
,
"Surname2"
,
"Mail2@email.com.com"
]
]
}
}
When it's a single value it's easy to add to my fields because the structure of the json is simple and I can get the values direct:
{
"ID"
:
1
,
"Name"
:
"Name1"
,
"Surname"
:
"Surname1"
,
"Email"
:
"mail1@email.com"
}
I cannot get the multiple result to my table - I have created a structure:
ST
MyRecords
is structure
ID
is int
Name
is string
Surname
is string
Email is string
END
ST
UserDetails
is structure
arrRecords
is array of string
END
And this is my code:
myrequest
is string
buf
Buf
is
Buffer
st
MyDetails
is
ST
UserDetails
myrequest
=
HTTPRequest
(
"https://getthejasonresponsehere/"
)
buf
Buf
=
HTTPGetResult
(
)
Deserialize
(
st
MyDetails
,
buf
Buf
,
psdJSON
)
I have tried so many scenarios and don't know where to go with this. I am using Windev Mobile 21 so there is no JSONtoVariant option.
Please can someone help me with the code.
Regards
Ruan
Informar
0
0
→ Volver a WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto