How to use a variable when returning response in policy definition?

I guess the send-request policy works and the result is stored in the variable. Then I want to return a response (still in inbound, I get 500 when trying to do it in outbound):

   application/json  

All of them are rendered as written, no value is being extracted.

Edit: I also tried adding a placeholder string and then using

And try to place it in inbound and outbound alike. But this policy did not launch.

It's a JSON object that I want to append to the response (small detail: in reality I have this issue with multiple variables).

My question is: how can I add my declared variable to the response?