I have a GET on an API enpoint, the data reponse is fine in PAW/PostMan, but I am struggling with the JSON in Wappler
My reponse in PAW is
HTTP/1.1 200 OK "date": "Fri, 08 Jan 2021 14:10:18 GMT", "content-length": "576", "last-modified": "Fri, 08 Jan 2021 10:38:22 GMT", "content-type": "application/json", "connection": "Close" { "$descriptor": “Test Account ", "$totalResults": 9, "$startIndex": 1, "$itemsPerPage": 1, "$resources": [ { "$url": "http://192.168.1.54/accounts/{1}/Customer(103)", "$uuid": “103", "$httpStatus": "OK", "$descriptor": "", "name": “Test Record", "Balance": 640.0 } ] }
My response in Wappler is
{
“apiGetBalance”: {
“status”: 200,
“headers”: {
“date”: “Fri, 08 Jan 2021 14:10:18 GMT”,
“content-length”: “576”,
“last-modified”: “Fri, 08 Jan 2021 10:38:22 GMT”,
“content-type”: “application/json”,
“connection”: “Close”
},
“data”: "{\r\n “$descriptor”: "Test Account “,\r\n “$totalResults”: 9,\r\n “$startIndex”: 1,\r\n “$itemsPerPage”: 1,\r\n “$resources”: [\r\n {\r\n “$url”: “http://192.168.1.54/accounts/{1}/Customer(103)”,\r\n “$uuid”: “103”,\r\n “$httpStatus”: “OK”,\r\n “$descriptor”: “”,\r\n “name”: “Test Record”,\r\n “Balance”: 640.0\r\n }\r\n ]\r\n}”
}
}
Any suggestions would be appreciated.
Thanks