Also used as: JSON, JavaScript Object Notation.
JSON is a text format for exchanging data. Its name comes from JavaScript Object Notation, but programs written in different languages can use the format. JSON.org describes two central structures: objects, which contain name/value pairs, and ordered lists called arrays. Values can include text, numbers, true, false, null, objects and other arrays. Source: JSON.org.
Within an organization, JSON can represent information exchanged between systems: request fields, a list of documents or the result of processing. It is a way to write data for interchange. The format alone does not define the organizational meaning of status, owner or date, even when those names appear in an object. The systems exchanging that object need an agreed interpretation of its contents.
Validity is not truth
Valid JSON follows the format's syntax. That does not establish that expected fields are present, values are appropriate to the process or information corresponds to reality. A schema can add structural requirements. Even so, a response that follows the schema may require content and business-rule checks. OpenAI's structured output documentation explicitly identifies that need. Source: OpenAI.
When planning an integration, separate the questions: can the program read the format? Does the structure satisfy the agreed contract? Are the values acceptable for the next action? Also define how missing information will be represented. Null, an empty string and an omitted field should not acquire improvised meanings at each step. Agree on these choices among the people responsible for the systems and document how each state is handled.
Hypothetical example
A system receives an object containing a request identifier and an approved field set to true. The content may be syntactically valid and follow the expected structure, but that does not establish that an authorized person approved the request. Before acting, the integration needs to check the source and process rule. If a model supplied the information, it also needs to handle refusals and incomplete responses. JSON carries the representation; the organization defines how to verify what it represents.
Sources
- Introducing JSON JSON.org
Description of the JSON text format, objects, arrays and value types.
- Structured model outputs OpenAI
The documentation limits schema adherence to completed non-refusal outputs and requires handling other response states.
A conversation about your organization.
Before recommending any tool, we talk with your teams and map how the work really happens.
Arrange a conversation


