Hi Mike,

for scope app that will break; use this

var parser = new global.JSON();

var parsedData = parser.decode(str);

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader