GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
JSON Array
JSON Array
Iniciado por Mister RUAN, ago., 14 2017 12:37 PM - Sem resposta
Conecte-se…
Mister RUAN
#1
Membro registado
208 mensagems
Popularité : +1 (1 vote)
Publicado em agosto, 14 2017 - 12:37 PM
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
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto