I’m using the Code service and trying to parse the collection output into an array. I’ve been using the ‘&&’ modifier to turn it into a list, but I’ve come to realize that the entire output is still a string. What could I do to achieve this result?
Code snippet:
var answeredQuestions = inputs.answeredQuestions;
Inputs
Inputs.answerQuestions = {{look_for_matching_response_id.results_+_gsx:question &&}}
Collection output
“answeredQuestions”: “870, 870, 870, 870, 870, 870, 870, 870, 870, 870 & 870”,