Breakline in json

Hello BubbleFam!

I send batch emails with postmark. this is the third time my json is broken because some values have a breakline at the end like :

image

I tried to test to format with “jsonsafe” in a page but I see a \n replacing breakline.

An idea ho to fix this ?

thanks !

Maybe you can do :find and replace

In the find field enter a line break
And replace leave that empty

1 Like

:trimmed removes all kind of whitespace before and after the text

https://manual.bubble.io/core-resources/data/operations-and-comparisons#trimmed

2 Likes

Such a good feature

what’s wrong with prenom: and using :formatted as JSON safe at the end of your expression input? Any user provided inputs should really be formatted as JSON safe.

1 Like

thanks guys for your answers.

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.