# Formatted as Json safe

**URL:** <https://forum.bubble.io/t/formatted-as-json-safe/354038>\
**Category:** APIs\
**Created:** [January 4, 2025, 1:52pm UTC](https://forum.bubble.io/t/formatted-as-json-safe/354038 "2025-01-04T13:52:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepak3](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@deepak3](https://forum.bubble.io/u/deepak3)\
**Post date:** [January 4, 2025, 1:52pm UTC](https://forum.bubble.io/t/formatted-as-json-safe/354038/1 "2025-01-04T13:52:06Z")

</div>

I am building a simple code review platform using Openai. The user writes code for a specific coding challenge. This code is then passed to Openai for a review.

Here is where my problem is, I keep getting a Json error. I tried replacing special characters and then added a formatted as Json safe at the end. I still keep getting the same error.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/5/c5c8066e74fba069a5b7c0c4c12a86d29e146bcd.png)

Please help resolve this issue.

---

<div class="post-metadata">

**Author:** ![krenkel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/krenkel/32/213647_2.png) [@krenkel](https://forum.bubble.io/u/krenkel)\
**Post date:** [January 4, 2025, 1:57pm UTC](https://forum.bubble.io/t/formatted-as-json-safe/354038/2 "2025-01-04T13:57:24Z")

</div>

Hi @deepak3! And what error would that be? Could you send a printout of the error return and/or warning?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [January 4, 2025, 2:06pm UTC](https://forum.bubble.io/t/formatted-as-json-safe/354038/3 "2025-01-04T14:06:33Z")

</div>

Keep in mind. When using ‘json safe’ it adds quotes. So in the API connector, you will need to remove the quotes for that part. That is typically the issue. Does that help at all? 😊🤷‍♂️ Then you won’t need all the find and replace parts.

---

<div class="post-metadata">

**Author:** ![deepak3](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@deepak3](https://forum.bubble.io/u/deepak3)\
**Post date:** [January 5, 2025, 2:01am UTC](https://forum.bubble.io/t/formatted-as-json-safe/354038/4 "2025-01-05T02:01:35Z")

</div>

> [@krenkel](#):
>
> Could you send a printout of the error return and/or warning?

![image](https://us1.discourse-cdn.com/bubble/optimized/3X/1/7/1760f4ffa0a08216a6bb17438dd9fe5e224d623d_2_690x36.png)

---

<div class="post-metadata">

**Author:** ![krenkel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/krenkel/32/213647_2.png) [@krenkel](https://forum.bubble.io/u/krenkel)\
**Post date:** [January 5, 2025, 10:25am UTC](https://forum.bubble.io/t/formatted-as-json-safe/354038/5 "2025-01-05T10:25:09Z")

</div>

Hi @deepak3!  
I found this help link from 2023, I’ll pass it on to you, maybe it can help you too.

[OpenAI API Error - HTTP 400 - Need help / APIs - Bubble Forum](https://forum.bubble.io/t/openai-api-error-http-400/263917/13)
