JSON undefined error

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.

The active scripting engine doesn’t have a JSON object, so you have to include it manually

//USEUNIT "%FBDIR%\Scripts\json2.js"

var json = '{"result":true, "count":42}';
obj = JSON.parse(json);

alert(obj.count);

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.