I have an API Connector call that is a POST. When I construct the body dynamically, I need to insert a value entered by a user in a text box. Is there a way for me to escape that text as valid JSON?
Here’s the way I’m currently formatting the body in the workflow:
hi,
how did you go with this? Facing the same issues for the past few days.
It’s been quite a while since I’ve used Bubble, so I don’t know if there’s anything new, but what I did was use two find and replace methods chained together. The first replace \ with \ (two backslashes - the forum seems to show only one). The second replaced " with ". Not perfect, but handled most cases well enough.