---
id: 9534
lang: en
title: "Who Is More Honest with JSON: ChatGPT, Gemini or xAI?"
published_at: "2026-05-17 11:00:38"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1033478/?utm_campaign=1033478&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/9534"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Who Is More Honest with JSON: ChatGPT, Gemini or xAI?

> **Краткая суть (BLUF):** Habr developers ran adversarial tests of Structured Outputs from OpenAI, Gemini and xAI to see how faithfully each follows JSON Schema. They asked the models to deliberately break the response format and watched where each provider holds the line.  The results were unexpected: the restrictions on anyOf, oneOf, allOf and strict: true differ across all three. The takeaway: for production systems that use several providers, this is critical.

Habr developers ran a study of how Structured Outputs work at three leading LLM providers: ChatGPT (OpenAI), Gemini and xAI.

### How did they test honesty in JSON handling?
The authors used adversarial testing. They built prompts designed to push the model into violating the JSON Schema, then checked where each provider holds the line and where it gives way.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1033478/?utm_campaign=1033478&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/9534
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
