Share feedback, ideas and get community help

Updated 12 months ago

convert string to JSON to use in webhook

hi i need help with type, basically i have a webhook that returns a JSON string which i save in a variable but i want to use that JSON string in body of my next webhook

""custom_attributes": {
"TypeBot Session": "123abc456def789ghi",
"Attribute 1": "abc"
}" returned string from my first webhook

removed typebot session with the help of string.replace but now i want to convert it to JSON so that i can use it in body of my next Webhook
L
1 comment
You can use JSON.parse to convert it to object then access the object keys.
Add a reply
Sign up and join the conversation on Discord