Got Wrong JSON wraped text from GraphGPT

The response json data is broken in field from GraphGPT (https://api.openai.com/v1/completions).

The json data below $.choices[0].text is not a parseable json format…

{
    "id": "cmpl-6gqgjDhp7a2AmSIqSb2YySLKHPn6W",
    "object": "text_completion",
    "created": 1675670329,
    "model": "text-davinci-003",
    "choices": [
        {
            "text": "\n{ \"counter\": 2, \"graph\": { \"nodes\": [ { \"id\": 1, \"label\": \"Alice\", \"color\": \"#ffffff\" }, { \"id\": 2, \"label\": \"Amanda\", \"color\": \"#ff7675\" } ], \"edges\": [ { \"from\": 1, \"to\": 2, \"label\": \"daughter\" }, ] } }",
            "index": 0,
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 271,
        "completion_tokens": 85,
        "total_tokens": 356
    }
}

After parse:
{ “counter”: 2, “graph”: { “nodes”: [ { “id”: 1, “label”: “Alice”, “color”: “#ffffff” }, { “id”: 2, “label”: “Amanda”, “color”: “#ff7675” } ], “edges”: [ { “from”: 1, “to”: 2, “label”: “daughter” }, ] } }

The right response should be :
{ “counter”: 2, “graph”: { “nodes”: [ { “id”: 1, “label”: “Alice”, “color”: “#ffffff” }, { “id”: 2, “label”: “Amanda”, “color”: “#ff7675” } ], “edges”: [ { “from”: 1, “to”: 2, “label”: “daughter” } ] } }

there exist additional “,” char and sometimes maybe “},” , it’s weird.