Hi All,
My XSJS fails to get data from an external server due to the line 08 below.
My input is an XML and the output returned is also XML and not JSON.
I just can't seem to find the corresponding XML counterpart for JSON.stringify. Let me know please if you are aware of the answer.
req.contentType = "text/xml"; req.setBody(data); client.request(req, dest); var response = client.getResponse(); var resBody = response.body.asString(); $.response.setBody(JSON.stringify({ //This might be the problem "body" : resBody;
Thanks,
Shyam