[Progress Communities] [Progress OpenEdge ABL] Forum Post: Showing empty JSON response (ABL HTTP client)

Status
Not open for further replies.
S

Steven Peeters

Guest
Hi, OE 11.6.3 I'm trying to display a response using the ABL Http client. The response (as I've been able to get in Postman) should be: [ { "data": [ [ "2019-09-16T07:23:58.060000", "None", "1900-01-01T00:08:45.250000" ], [ "2019-09-16T07:33:04.620000", "X-ray", "1900-01-01T00:18:38.430000" ] ], "error": "", "statement_time": 0.70675600000000005, "total_time": 0.72309699999999999 } ] The code I'm using is: oRequest = RequestBuilder:Get(vcUrl) :AcceptJson() :Request. oResponse = ClientBuilder:Build():Client:Execute(oRequest). oJsonEntity = cast(oResponse:Entity, JsonObject). oJsonEntity:Write(JsonString, true). message string(JsonString) view-as alert-box. I'm getting an empty result. just "{}". Response-data-received.txt (LOGMANAGER output) is showing the correct json response. I've tried this code on an OE Dataobject and this code displayed the JSON just fine. What am I doing wrong here? Regards, Steven

Continue reading...
 
Status
Not open for further replies.
Top