---
title: "Comment by Puneet Khandelwal on \"Your AI Feature Is Lying to You: Stop Using JSON Mode and Use Schema-Constrained Outputs\" | Hashnode"
description: "Spot on. JSON mode just stops syntax errors, but schema enforcement is the only way to actually stop runtime hallucination."
url: "https://hashnode.com/posts/your-ai-feature-is-lying-to-you-stop-using-json-mode-and-use-schema-constrained-outputs/6ac1044a4835cefdf58bcc41/comment/6ac22a1a706b4eb4602da18a"
---

[Discussion](https://hashnode.com/posts/your-ai-feature-is-lying-to-you-stop-using-json-mode-and-use-schema-constrained-outputs/6ac1044a4835cefdf58bcc41)

Comment [Your AI Feature Is Lying to You: Stop Using JSON Mode and Use Schema-Constrained Outputs](https://hashnode.com/posts/your-ai-feature-is-lying-to-you-stop-using-json-mode-and-use-schema-constrained-outputs/6ac1044a4835cefdf58bcc41)

[Puneet Khandelwal](https://hashnode.com/@lifestyle4u)

[Oct 4](https://hashnode.com/posts/your-ai-feature-is-lying-to-you-stop-using-json-mode-and-use-schema-constrained-outputs/6ac1044a4835cefdf58bcc41/comment/6ac22a1a706b4eb4602da18a)

Spot on. JSON mode just stops syntax errors, but schema enforcement is the only way to actually stop runtime hallucination.
