Forum Academy Marketplace Showcase Pricing Features

Return Data from API as custom JSON object

Hello.

I have an endpoint that when called correctly, is supposed to return a json object in this format

{
“ResultCode”: 0,
“ResultDesc”: “Accepted”
}

However, when using the Return Data From API, I create the parameters and keys as above, pictured below.

Unfortunately, when the endpoint is hit, the format of the response looks like this

{
“status”: “success”,
“response”: {
“ResultCode”: 0,
“ResultDesc”: “Accepted”
}
}

I’ve tried to send it as plain text but the response needs to be a JSON object in the format

{
“ResultCode”: 0,
“ResultDesc”: “Accepted”
}

How can I pull this off?