How to send request data in response


I am trying to mock my request using mock server but the response not getting as expected (I observed that in postman web view there no prescript found)
I have requests like below
“addr” : {“skey1”:“svalue”

like this i have requests …
response should be like this :

Ways i have tried using preScript

var reqBody= pm.request.body.raw
var json_verify = function(reqBody){ try { JSON.parse(reqBody); return true; } catch (e) { return false; }}
    var val = JSON.parse(pm.request.body.raw)
    var bol = true
    for(var key in val)

and using this key in response body. but

please help me any way on achieving this
let me know if you need any thing