# Can't add paragraphs via Glide API

**URL:** <https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682>\
**Category:** Report a Bug\
**Created:** [August 14, 2022, 2:21am UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682 "2022-08-14T02:21:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brice](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@Brice](https://community.glideapps.com/u/Brice)\
**Post date:** [August 14, 2022, 2:21am UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/1 "2022-08-14T02:21:27Z")

</div>

Hello!  
When using Glide API, I can’t send data with paragraphs to text column.

**This example works:**  
This is a text.

**This also works:**  
This is a text. This is a text.

**This is not working:**  
This is a text.  
This is a text.

Please check.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 14, 2022, 2:23am UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/2 "2022-08-14T02:23:44Z")

</div>

Do you get an error message?

If you’re sending multi-line strings without properly escaping the newlines, then you’re probably sending invalid JSON.

---

<div class="post-metadata">

**Author:** ![Brice](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@Brice](https://community.glideapps.com/u/Brice)\
**Post date:** [August 14, 2022, 1:27pm UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/3 "2022-08-14T13:27:08Z")

</div>

Hello @Darren_Murphy!  
I can’t get a message with the tool I’m using.  
Please check the example cited. Just a new line and the data can’t be sent.  
You can try to see what I’m talking about.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 14, 2022, 1:31pm UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/4 "2022-08-14T13:31:28Z")

</div>

Yes, I understand what the problem is. And as I mentioned, multi line strings in JSON must be properly escaped otherwise your JSON will be invalid.

> <https://stackoverflow.com/questions/2392766/are-multi-line-strings-allowed-in-json>

---

<div class="post-metadata">

**Author:** ![David\_Gabler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_gabler/32/44332_2.png) [@David\_Gabler](https://community.glideapps.com/u/David_Gabler)\
**Post date:** [August 14, 2022, 9:31pm UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/5 "2022-08-14T21:31:12Z")

</div>

> [@Brice](#):
>
> I can’t get a message with the tool I’m using.

That’s got to be difficult to code with! Must be a custom tool.

What @Darren_Murphy is stating is that you cannot embed a carriage-return/line-feed control character in your JSON. You have to replace it with \n\r

JSON can accept any Unicode character except " or \ or control-character  
escapes for JSON:  
" – Quotation Mark  
\n – linefeed  
\r – carriage return  
\f – formfeed  
\ – reverse solidus  
/ – solidus  
\b – backspace  
\t – horizontal tab  
\u four-hex-digits

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [August 14, 2022, 10:32pm UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/6 "2022-08-14T22:32:06Z")

</div>

Just adding a post besides for great replies provided by Darren and David! 🙌

Faced this same issue on Adalo and found a solution with JavaScript! : [SendGrid multiple lines - #3 by dilon\_perera - Get Help - Adalo](https://forum.adalo.com/t/sendgrid-multiple-lines/30752/3?u=dilon_perera)

---

<div class="post-metadata">

**Author:** ![David\_Gabler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_gabler/32/44332_2.png) [@David\_Gabler](https://community.glideapps.com/u/David_Gabler)\
**Post date:** [August 15, 2022, 1:25am UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/7 "2022-08-15T01:25:55Z")

</div>

I should have read my reply as posted. It looks like it garbled the syntax. Here is a screen-shot:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/1/815832f886b85704c49dffe41a924820a3632eee.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 15, 2022, 1:30am UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/8 "2022-08-15T01:30:24Z")

</div>

To paste codeblocks/pre-formatted text and have the formatting preserved, enclose the lot with 3 backticks on a separate line, before and after.  
 ![Screen Shot 2022-08-15 at 9.29.16 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/6/e61c494706144fcf22a9d4b858103c7e5702c6fe.png)

results in:

```auto
this is a code block
blah blah blah

```

---

<div class="post-metadata">

**Author:** ![David\_Gabler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_gabler/32/44332_2.png) [@David\_Gabler](https://community.glideapps.com/u/David_Gabler)\
**Post date:** [August 15, 2022, 1:32am UTC](https://community.glideapps.com/t/cant-add-paragraphs-via-glide-api/46682/9 "2022-08-15T01:32:09Z")

</div>

> [@Darren\_Murphy](#):
>
> `blah blah blah`

I understood this part. 🤪
