# Breakline in json

**URL:** <https://forum.bubble.io/t/breakline-in-json/319545>\
**Category:** Need help\
**Created:** [April 26, 2024, 8:15am UTC](https://forum.bubble.io/t/breakline-in-json/319545 "2024-04-26T08:15:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah\_Esteve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sarah_esteve/32/258989_2.png) [@Sarah\_Esteve](https://forum.bubble.io/u/Sarah_Esteve)\
**Post date:** [April 26, 2024, 8:15am UTC](https://forum.bubble.io/t/breakline-in-json/319545/1 "2024-04-26T08:15:49Z")

</div>

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](https://us1.discourse-cdn.com/bubble/original/3X/2/c/2c368301c46bb86872390f44dead64a92ac56850.png)

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 !

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [April 26, 2024, 8:19am UTC](https://forum.bubble.io/t/breakline-in-json/319545/2 "2024-04-26T08:19:58Z")

</div>

Maybe you can do :find and replace

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

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dorilama/32/226878_2.png) [@dorilama](https://forum.bubble.io/u/dorilama)\
**Post date:** [April 26, 2024, 8:38am UTC](https://forum.bubble.io/t/breakline-in-json/319545/3 "2024-04-26T08:38:39Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [April 26, 2024, 8:39am UTC](https://forum.bubble.io/t/breakline-in-json/319545/4 "2024-04-26T08:39:41Z")

</div>

> [@dorilama](#):
>
> trimmed removes all kind of whitespace before and after the text

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.

---

<div class="post-metadata">

**Author:** ![Sarah\_Esteve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sarah_esteve/32/258989_2.png) [@Sarah\_Esteve](https://forum.bubble.io/u/Sarah_Esteve)\
**Post date:** [April 26, 2024, 9:12am UTC](https://forum.bubble.io/t/breakline-in-json/319545/5 "2024-04-26T09:12:42Z")

</div>

thanks guys for your answers.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 5, 2024, 8:15am UTC](https://forum.bubble.io/t/breakline-in-json/319545/6 "2024-07-05T08:15:54Z")

</div>

Closed on July 5, 2024, 8:15am UTC

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