Hey there! If you're building an application with Bubble and using Xano for your backend, you may run into a situation where your users input data with double quotation marks (`"`), which can cause issues when parsing JSON. Don't worry, though! We've got a simple solution to handle this and ensure your data is stored correctly.
In your Bubble workflow, create an action that finds and replaces the double quotation marks with a different character or set of characters that are unlikely to be used by your users. For example, you can replace `"` with ``.
Here's how you can set this up:
This action will replace any double quotation marks in your input field with two asterisks before sending the data to your Xano API.
Now that we've replaced the double quotation marks with asterisks in Bubble, we need to transform them back to double quotation marks in Xano before storing the data.
This filter will replace the asterisks (or whatever characters you used) with double quotation marks before storing the data in your Xano database.
Now that you've set up the find and replace actions in both Bubble and Xano, it's time to test your solution.
You should see that the double quotation marks are correctly stored in your database, even if the user entered them in the input field.
And that's it! By following these steps, you can easily handle double quotation marks in JSON data when working with Xano and Bubble. This solution ensures that your users' input is stored correctly, regardless of whether they use double quotation marks or not.
Remember, this solution can be adapted to handle other special characters or formatting issues that may arise when working with user input and JSON data. The key is to find a character or set of characters that are unlikely to be used by your users and replace the problematic characters with them before sending the data to your API.
Happy building!
This transcript was AI generated to allow users to quickly answer technical questions about Xano.
I found it helpful
I need more support