Is there a way to use JSON.parse as in the following example in AfterAction? if (ActionResult) { var data = JSON.parse(shareCommandOutput); ReleaseNotes += “\r\n” + "This build is available from " +data.URL; }
This returns the error of:
Error Executing script : AfterAction
Microsoft JScript runtime error
‘JSON’ is undefined
Line: 3
Char : 3
Error in AfterScript : JavaScript
This Action did execute successfully however an error occurred in the AfterAction script.
Yes, that worked as long as there was no space in front of //USEUNIT "%FBDIR%\Scripts\json2.js". I also happened to note that %FBDIR% includes a \ so there was a double.