SOLVED
JSON.Stringify is not a function
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Printer Friendly Page
rpaugh
11 - Bolide
‎01-18-2019
10:13 AM
- Mark as New
- Subscribe to RSS Feed
- Permalink
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?
Solved! Go to Solution.
Labels:
- Labels:
- HTML GUI
- JavaScript
- SDK
2 REPLIES 2
NeilR
Alteryx Alumni (Retired)
‎01-18-2019
10:17 AM
- Mark as New
- Subscribe to RSS Feed
- Permalink
Did you try lowercase S: JSON.stringify()
‎01-18-2019
10:22 AM
- Mark as New
- Subscribe to RSS Feed
- Permalink
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()".
