# Send "code block" in rich text through API

**URL:** <https://community.fibery.io/t/send-code-block-in-rich-text-through-api/5303>\
**Category:** Get Help\
**Created:** [October 18, 2023, 12:19pm UTC](https://community.fibery.io/t/send-code-block-in-rich-text-through-api/5303 "2023-10-18T12:19:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurentiu](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/laurentiu/32/7431_2.png) [@Laurentiu](https://community.fibery.io/u/Laurentiu)\
**Post date:** [October 18, 2023, 12:19pm UTC](https://community.fibery.io/t/send-code-block-in-rich-text-through-api/5303/1 "2023-10-18T12:19:44Z")

</div>

Hi

I want to send a string of RAW JSON in a rich text field and I want to insert it into a **/code block** with JSON as the language selected.

I am using the [make.com](http://make.com) integration, but what I can’t figure out is how I should wrap the JSON string.  
I tried sending it like “`json here`” using 3 of the → ` ← character and it works…but it’s not the same as “code block”.

![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/7/7621280eb043c487880d6357fc636623f910a676.png)  
results in  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/064c22ff27871d3450a25370bb23d8b4e2ce1a6c.png)  
but what I want is  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/6/6f2457fb66ac3115d4c2ebee40b104d8a572c297.png)

Is there a way to achieve this outcome?

---

<div class="post-metadata">

**Author:** ![aoe](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aoe/32/6018_2.png) [@aoe](https://community.fibery.io/u/aoe)\
**Post date:** [October 18, 2023, 12:45pm UTC](https://community.fibery.io/t/send-code-block-in-rich-text-through-api/5303/2 "2023-10-18T12:45:38Z")

</div>

Would it work if you add new lines after `, like this?

````auto
_```
1. value
_```

````

(of course remove \_)

---

<div class="post-metadata">

**Author:** ![Laurentiu](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/laurentiu/32/7431_2.png) [@Laurentiu](https://community.fibery.io/u/Laurentiu)\
**Post date:** [October 18, 2023, 12:49pm UTC](https://community.fibery.io/t/send-code-block-in-rich-text-through-api/5303/3 "2023-10-18T12:49:25Z")

</div>

Thanks! That actually worked.

Now the only thing left would be to change from “plain text” to “JSON” if that’s somehow possible.

---

<div class="post-metadata">

**Author:** ![aoe](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/aoe/32/6018_2.png) [@aoe](https://community.fibery.io/u/aoe)\
**Post date:** [October 18, 2023, 12:52pm UTC](https://community.fibery.io/t/send-code-block-in-rich-text-through-api/5303/4 "2023-10-18T12:52:14Z")

</div>

Great!

Don’t know how to change that unfortunately. Perhaps try to extract/export the page in markdown and see if the JSON-field is embedded in any way.
