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

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

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

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.

thanks guys for your answers.