I've got a email which does a HTTP Get call using SSJS
Platform.Function.HTTPGet, results return JSON and I can parse it successfully.
Would the calls get cached or would a Get call happen per subscriber? I need it to be cached.
I then came across this Script.Util.HttpGet which should cache the get calls as per docs, however I can't use the parse JSON function as it results in an error.
Unable to retrieve security descriptor for this frame. Line: 7 Char: 1 var json = Platform.Function.ParseJSON(response.content)
Heres a simplified code snippet
var req = new Script.Util.HttpGet("https://api.myjson.com/bins/o9qvd"); var response = req.send(); var json = Platform.Function.ParseJSON(response.content);
Any recommendations/suggestions, it seems like the get call is successful and I can print the results, but ParseJSON causes the issue