VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Vocabulary, English and Problems Created in Artificial Intelligence | Can an AI Produce Perfectly Valid JSON That Is Completely Wrong?

Artificial intelligence can produce a perfectly formatted machine-readable record that describes an event incorrectly. A JSON object may contain every required field, use the permitted data types and pass a schema validator while placing an incorrect amount in an invoice, identifying the wrong document or recording an approval that never occurred. Valid structure and valid information are different achievements.

Vocabulary Coding and Engineering examines how words become fields, values, relationships and eventually actions. When AI turns natural language into structured data, the system needs to test what the output means, not just whether software can parse it. This article develops a practical method for separating format, domain rules, evidence and authority, from a person’s small task to society’s shared records.

  • JSON syntax determines whether a document can be parsed; a schema can constrain its structure and values.
  • A schema-valid value is not necessarily an accurate extraction from the original source.
  • A domain rule may require relationships between fields or verification against another system.
  • Evidence, authorisation and execution are separate tests.
  • Preserve unresolved information rather than inventing a value merely to satisfy a required field.

Article contents

Four different meanings of valid

Consider a fictional repair request. The customer reports that a technician may visit on Tuesday, but the appointment is not confirmed. An AI extracts a date and a status. Its output says Tuesday and confirmed. If confirmed is one of the permitted status values, the structured record may pass the format and schema checks.

The error is not that the record cannot be processed. The error is that it can be processed while expressing the wrong state of the world. An automated calendar, service dashboard or reminder system could now act on a supposed confirmation.

The word valid needs a stated reference. Syntactically valid means that the representation follows the grammar of the format. Schema-valid means that the instance satisfies the applicable schema constraints. Domain-valid may mean that the values and relationships satisfy relevant business rules. Evidentially supported means that the underlying information justifies the claim. A separate question is whether the user or institution has authorised the action.

The JSON Schema documentation explains how a declarative language can describe and validate the structure, types and constraints of JSON documents. This is valuable infrastructure. It is not a universal fact-checking service. The constraints must themselves reflect the intended requirements, and the data must still be checked against appropriate evidence.

Back to contents

Zoom 1: a personal assistant and the wrong appointment

Imagine an assistant converting an email into a calendar entry. The email says: ‘Could we meet at 3 pm on Thursday? Please confirm whether that works.’ The assistant produces a perfectly parseable appointment record with a start time of 3 pm and status confirmed. A person reading the original would notice that the meeting is only proposed.

A better extraction distinguishes proposed time from accepted time. It can retain the original expression, the relevant date and time zone where established, the sender, the evidence for the status and any pending response. It should not schedule or send an acceptance without the necessary authority.

The same distinction helps with bills. If an invoice says an amount is an estimated charge rather than the amount already paid, the extracted value should carry the correct field meaning. A numerical data type cannot by itself tell the difference between money owed and money transferred.

A reader can ask the assistant to show where each consequential field came from. The source may be an email, receipt, form or document. Where the source is ambiguous, the record can remain unresolved rather than forcing certainty.

Back to contents

Zoom 2: why software validation needs layers

Imagine a schema requiring a customer identifier, an amount as a number, a currency and a status chosen from a fixed set. It can reject a missing amount or a status outside the permitted set. Depending on its design, it may also express conditional requirements. These checks catch valuable classes of error.

But if a record supplies 250 instead of 205, both numbers may satisfy the same numerical constraints. A schema can also accept a real customer identifier that belongs to the wrong customer. A required field can be filled with a plausible invention. These cases require source comparison or other independent validation.

A robust design uses layers. First parse the representation. Second check its declared structural constraints. Third evaluate relevant business rules, including relationships between fields. Fourth verify the facts and evidence. Fifth apply permissions and decide whether a tool may act. Finally verify the result of execution when needed.

Do not assume that all schema languages or implementations support the same constraints. A programmer should inspect the version and capabilities of the actual validator. Domain logic and access control belong in suitable application components, not in the hope that a model will obey every natural-language instruction.

Back to contents

Zoom 3: institutional records and false completion

A fictional organisation uses AI to convert reports into a database. The status field permits pending, approved and declined. If the source document says ‘the committee will consider the proposal next month’, the correct extracted status may be pending, not approved. Yet both values are structurally legitimate.

The downstream consequence depends on the workflow. An approved record might permit the next team to allocate resources; a pending record might require further review. The structure of the data turns a small vocabulary error into a process transition.

Build a field specification that includes the meaning of the value, permitted source types, evidence requirements, uncertainty states and decision authority. Where a classification cannot be established, a well-designed workflow should permit an unresolved result or route the case to review.

An organisation also needs to distinguish extraction from modification. A system asked to identify the current status of a record should not change that status simply because a generated answer labels it approved. The authoritative record and the reported interpretation remain separate.

Back to contents

Zoom 4: structured information and civilisation

At societal scale, information is often exchanged between institutions as structured records. Such records make it possible to search, compare and analyse large collections. They can also propagate an incorrect interpretation efficiently if every receiving system assumes that schema validation establishes truth.

Imagine two public datasets using an identical field called completed. One means that an administrative form was processed, while the other means that the service was actually delivered. Even if the data types and allowed values match, their meanings do not necessarily correspond.

A shared record should identify the definition and version under which it was produced, the source and the evidence needed for important claims. If definitions differ, mappings should describe their scope rather than silently asserting equivalence.

At the civilisational level, the proposed invariant layer of Vocabulary Coding and Engineering can help preserve a bounded set of concepts and relationships through data transformations. But an immutable record of a false claim remains a false claim. Truth requires appropriate evidence; governance and correction remain necessary.

Back to contents

A worked integrity check: the difference between an example and a fact

Use a fictional source: ‘The estimated repair cost is USD 250. Payment has not been received. The estimate is awaiting customer approval.’ Construct a candidate record with amount 250, currency USD, amount type estimate, payment status unpaid and approval status pending.

Then create an alternative record that changes amount type to received payment and approval status to approved. Both may contain correctly typed fields. Compare each field to the original sentence rather than merely comparing the records with a schema.

A useful third case omits the amount entirely from the source. The system should not generate a plausible figure to satisfy a mandatory field. It may produce a supported missing-value state, report an extraction failure or request the necessary information, according to the application’s design.

The evaluation should record the failure stage. A parsing failure requires a different repair from a domain rule failure or a misreading of the source. Do not count an AI response as successful merely because downstream software accepted it.

Back to contents

Four weeks of building a semantic validation habit

Week 1: Create ten fictional sentences about simple tasks. Identify entities, quantities, dates, status and evidence. Write a small structured record for each.

Week 2: Design a schema or field checklist that rejects missing or malformed values. Introduce cases that are structurally valid but factually incorrect. Record which ones pass.

Week 3: Add source verification and domain checks. Test an ambiguous report and one containing an explicit contradiction. Keep the original text linked to the proposed record.

Week 4: Simulate a harmless downstream workflow. Distinguish extracting a value, authorising an action, carrying it out and verifying completion. Review false successes as well as rejected cases.

Back to contents

Questions readers can ask

Does valid JSON mean the AI’s answer is true? No. It means the output satisfies JSON syntax, or, when a schema is specified, the relevant validation constraints. The factual meaning is a separate question.

Is a strict schema useful? Yes. It can eliminate many structural errors and make values easier to inspect, but it cannot establish every real-world fact.

Can a model verify itself merely by generating a second JSON record? A second output may help identify problems, but it is not necessarily independent evidence. Check the source and appropriate external controls.

Read next: Why Does AI Confuse Started, Submitted, Approved and Completed? and The Vocabulary of AI Permission and Obligation. The structured record must protect meaning as well as the authority to act.

Back to contents