Get request/response body in Neoload to manipulate it using Javascript code

I need to get the http request body using JavaScript in neoload to manipulate the request and further get the response body to manipulate it again.

Basically I need the neoload equivalent of the following code:

pm.request.body = {
    mode: 'raw',
    raw: JSON.stringify(encryptedRequestBody)
};

I have tried below but did not work

context.currentVirtualUser.getRequestBody();