Dev Space

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.
SOLVED

JSON.Stringify is not a function

rpaugh
11 - Bolide

This is a weird one.  Some of the data I will be sending to the output stream for a custom JS tool will be in JSON format.  I used "JSON.Stringify()" to convert it to a string and output it, which worked perfectly...now it doesn't.  My code has not changed, but I'm suddenly getting this error.  Any insights into why the JS engine file would suddenly stop recognizing built-in javascript functions?

2 REPLIES 2
NeilR
Alteryx Alumni (Retired)

Did you try lowercase S: JSON.stringify()

rpaugh
11 - Bolide

Ok, stupid mistake.  I must've had a typo or something because the function is case-sensitive and I was apparently typing a capital "S".  The correct method is "JSON.stringify()".