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
1 Reply
LuizAlves
LuizAlves9mo ago
You can use JSON.parse to convert it to object then access the object keys.
Want results from more Discord servers?
Add your server