{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibrwon4perir43jsyuvttdrnks5en32ljf6oqxw4mih3gyzo45p7i",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mm6clz66ylj2"
},
"path": "/t/api-chat-completions-issue-json-schema-in-wrong-order-gpt-5-5/1381253#post_1",
"publishedAt": "2026-05-19T01:03:48.000Z",
"site": "https://community.openai.com",
"tags": [
"(click for more details)"
],
"textContent": "## When:\n\nModel: gpt-5.5\nEndpoint: Chat Completions\nresponse_format/text.format: json_schema\n\n## Symptom:\n\nGPT-5.5, Chat Completions: AI model is producing its output JSON in the wrong order, disobeying the schema, and only on Chat Completions, not Responses. This ruins the chain-of-thought necessary for quality decision-making.\n\nGPT-5.5, Responses: AI model is not given a logit enforcement of when it is in a string or out, and produces unescaped double-quotes, and breaks out of the JSON. Even the playground parser knows it is bad JSON, because it doesn’t highlight.\n\n## AI diagnoses itself:\n\n### Chat Completions - wrong\n\n### Responses - correct (but damaged output with unescaped quotes)\n\n\n {\n \"contains_person\": false,\n \"is_known_person\": false,\n \"name\": \"none\",\n \"unencumbered\": true,\n \"justification\": \"[\"contains_person\", \"is_known_person\", \"name\", \"unencumbered\", \"justification\", \"release_to_user\"]\",\n \"release_to_user\": true\n }\n\n\n### Chat Completions, GPT-5.4 - Correct\n\n\n {\n \"contains_person\": false,\n \"is_known_person\": false,\n \"name\": \"none\",\n \"unencumbered\": true,\n \"justification\": \"['contains_person', 'is_known_person', 'name', 'unencumbered', 'justification', 'release_to_user']\",\n \"release_to_user\": true\n }\n\n\n### Responses, GPT-5.4 - AI is again able to produce bad JSON in its answer.\n\nModeration-like json_schema being used (click for more details)\n\n* * *\n\nAdditionally, developer functions are denied on Chat Completions with GPT-5.5 and GPT-5.4. If intentional, this is abhorrent.",
"title": "API Chat Completions issue: json_schema in wrong order, GPT-5.5"
}