Question

Array converted to comma separated list -- `string.split` throwing off values

  • 13 September 2021
  • 1 reply
  • 291 views

Userlevel 1

Webhook pulls JSON list. When I use javascript code to process the data received, the JSON list comes in as a comma separated list. In order for me to get it back into array form, I have too do a string.split(‘,’); However, some of the JSON fields contain commas! This is throwing off the array keys of the second value coming in.

Is it possible to instead convert the array into a pipe-delimited list first?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 1

I think I got it - I was trying to do this too late in the process. I needed to do it immediately after making the webhook call, not four steps down.