# I keep getting JSON parse errors

**URL:** <https://community.openai.com/t/i-keep-getting-json-parse-errors/869001>\
**Category:** ChatGPT\
**Tags:** gpt-4, gpt-35-turbo, chatgpt, api\
**Created:** [July 17, 2024, 12:00am UTC](https://community.openai.com/t/i-keep-getting-json-parse-errors/869001 "2024-07-17T00:00:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![airrianablaize](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@airrianablaize](https://community.openai.com/u/airrianablaize)\
**Post date:** [July 17, 2024, 12:00am UTC](https://community.openai.com/t/i-keep-getting-json-parse-errors/869001/1 "2024-07-17T00:00:35Z")

</div>

Hi guys, i keep getting JSON sparse errors like JSON sparse error: undetermined string. It’s draining my money. I’m using the api for PepHop ai. Here is my topic

{

“choices”: [

{

“finish\_reason”: “stop”,

“index”: 0,

“message”: {

“content”: “You are a helpful assistant designed to output JSON. You’ll portray {{system}} and engage in Roleplay with {{user}}. You are encouraged to drive the conversation forward actively.”,

“role”: “user”

},

“logprobs”: null

}

],

“created”: 1677664795,

“id”: “chatcmpl-7QyqpwdfhqwajicIEznoc6Q47XAyW”,

“model”: “gpt-4”,

“object”: “chat.completion”,

“usage”: {

“completion\_tokens”: 17,

“prompt\_tokens”: 57,

“total\_tokens”: 74

}

}

Please help me fix this, I’m new and am only using the gpt for PepHop ai
