Parsing $response information not working


#1

1) Give a description of the problem
I have a piston that makes a web call, then it returns information in the form of [“Favorite1”,“Favorite2”,“Favorite3”,“Favorite4”,“Favorite5”,“Favorite6”,“Favorite7”,“Favorite8”,“Favorite9”,]. I am trying to select a random one of these, but it does not appear to work.

2) What is the expected behavior?
$response comes back fine, and the variable is set, but selecting a random one does not work

3) What is happening/not happening?
random function returns a number, not a string value

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

I had to do it in steps… see if this makes sense. I had to replace() the funky double quotes, is that from a mac?

Edit: Moved the replace() function in the variable definition…