Convert the subscriber information in data extension (Marketing Cloud) into JSON message and send it to external system - Can this be done using AMPScript or Do I need to rely on SSJS (Server Side Java Script). Any thoughts please about the approach? This is the script I've used so far to make a call. Please correct me if I'm wrong.
%%[var @payload, @response
set @payload = '{
"email":"sendanemailtonishanth@gmail.com",
"name":"Nishanth M",
"ref":"1234"
}'
set @request = HTTPPost("https://www.trustpilot.com/evaluate-bgl/ABC.com?p=@payload")
]%%
status code: %%=v(@request)=%%
<br><br>response: %%=v(@response)=%%
</span></span>