ChuckGrigsby
7 years agoQrew Cadet
Formula Text to format JSON for webhook
I'm trying to make a JSON webhook sendinblue and for the emails to use I use a formula text that grabs all the emails related and formats them for the JSON like this
[{"email":"me@example.com"}, {"email":"you@example.com"}]
So the above is the result of the formula text and this is in my json like this.
If I paste the raw result of the formula text into this it works fine but when I use this it says invalid json format. I'm not sure if the webhook is getting messed up with the array [] brackets and thinks its a field or what. Any thoughts?
[{"email":"me@example.com"}, {"email":"you@example.com"}]
So the above is the result of the formula text and this is in my json like this.
{(Theres more to that JSON but the rest isn't relevant for this post)
"to":[EmailToJSONRemoveBlanks]
}
If I paste the raw result of the formula text into this it works fine but when I use this it says invalid json format. I'm not sure if the webhook is getting messed up with the array [] brackets and thinks its a field or what. Any thoughts?