Seperate OpenAI responses

Recently i've been trying to use the new OpenAI JSON mode with little to no luck this is the response I get: {

"id": "chatcmpl-8JzZPqAsufPTLXhSOZmwDTlZqKEkr",

"object": "chat.completion",

"created": 1699775599,

"model": "gpt-3.5-turbo-1106",

"choices": [

{

"index": 0,

"message": {

"role": "assistant",

"content": "{\n \"age\": 25,\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\",\n \"address\": \"123 Main Street, Anytown, USA\"\n}"

},

"finish_reason": "stop"

}

],

"usage": {

"prompt_tokens": 43,

"completion_tokens": 43,

"total_tokens": 86

},

"system_fingerprint": "fp_eeff13170a"

}

...is there any way that I can separate these responses (content field)

7 replies