JSON Mode
JSON mode is an API option, introduced by OpenAI at its DevDay in November 2023, that makes a large language model reply with valid JSON (JavaScript Object Notation) instead of free text, so that downstream code can parse the answer reliably.[1] It guarantees valid JSON syntax but not that the output follows a particular schema; schema adherence is the job of the later Structured Outputs feature.[2][3]