Hi guys, I have the following problem when I try to consume Prestashop rest api.
and the Json answer is not complete
"total_discounts_tax_excl": "0.000000", "total_paid" ......
java.lang.RuntimeException: JSON Array expected.
and the Json answer is not complete
"total_discounts_tax_excl": "0.000000", "total_paid" ......
java.lang.RuntimeException: JSON Array expected.
B4X:
Dim j As HttpJob
j.Initialize("",Me)
j.Download("https://pasteleriastrindberg.cl/api/orders?display=full&limit=1&output_format=JSON&ws_key=secret")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim jp As JSONParser
jp.Initialize(j.GetString2("UTF8"))
Dim quotes As List = jp.NextArray
For Each quot As Map In quotes
Next
End If
j.Release