Hi guys,
I will be more as happy when somebody can help me... I'm receiving a Json string from Post request - result is like this:
How to get all data to Map; when I'm using function:
I geting just FIRST value into map... How to read next object from Json string?
Thank you...
Darko
I will be more as happy when somebody can help me... I'm receiving a Json string from Post request - result is like this:
JSON:
[
{
"id": "9669",
"title": "PO-23-00029",
"status": "306",
"status_name": "Open/In production",
"customer_id": "9219",
"customer_name": "MAGMA MEDIA D.O.O."
},
{
"id": "9661",
"title": "PO-23-00028",
"status": "306",
"status_name": "Open/In production",
"customer_id": "9633",
"customer_name": "MyCustomer d.o.o."
},
{
"id": "9652",
"title": "PO-23-00027",
"status": "306",
"status_name": "Open/In production",
"customer_id": "9633",
"customer_name": "MyCustomer d.o.o."
},
{
"id": "9636",
"title": "PO-23-00026",
"status": "306",
"status_name": "Open/In production",
"customer_id": "9633",
"customer_name": "MyCustomer d.o.o."
},
{
"id": "9626",
"title": "PO-23-00025",
"status": "306",
"status_name": "Open/In production",
"customer_id": "9622",
"customer_name": "BigPrint d.o.o."
}
]
How to get all data to Map; when I'm using function:
Example code:
' Waiting for requesst
ProgressDialogShow2("Waiting for SAP...", False)
Wait For (job) JobDone(job As HttpJob)
ProgressDialogHide
If job.Success Then
Dim response As String = job.GetString
response = response.Replace("[","").Replace("]", "")
Log(response) ' Do something with the response
Dim jRead As JSONParser
jRead.Initialize(response)
Dim mOrders As Map
mOrders = jRead.NextObject
Log(mOrders)
Else
Log("Error: " & job.ErrorMessage)
End If
job.Release
I geting just FIRST value into map... How to read next object from Json string?
Thank you...
Darko