What is JSON
What It Is
JSON (JavaScript Object Notation) is a text format for structured data exchange. It represents data as nested key-value pairs, arrays, and primitives. A JSON object is a map. A map has keys. Keys have values. Values are strings, numbers, booleans, null, arrays, or other maps. Nothing else. JSON is not a programming language. It is not a database. It is a contract written in plain text that any system can read, write, and validate without negotiation.
Why It Matters
Data moves. Systems talk. JSON is the lingua franca because it is unambiguous, inspectable, and stateless. No hidden schemas. No binary black boxes. A human can read it. A machine can parse it. An auditor can diff it. In an open protocol, this is not a convenience. It is a requirement. If you cannot read the payload, you cannot verify the action. If you cannot verify the action, you cannot audit the system. JSON makes the invisible visible.
How It Works
JSON has six types. Six. No more.
- Object:
{}— a map of string keys to values. - Array:
[]— an ordered list of values. - String:
"text"— UTF-8 text, always quoted. - Number:
42or3.14— no quotes. Integer or float. - Boolean:
trueorfalse— lowercase. No quotes. - Null:
null— the absence of value.
A key-value pair looks like this: "key": "value". Keys are always strings. Values are any of the six types. Arrays hold values in order. Objects hold keys without order. Nesting is free. An array of objects is normal. An object containing arrays is normal.
Parsing is deterministic. "42" is a string. 42 is a number. true is boolean. "true" is a string. These are not the same. JSON parsers enforce this. There is no silent coercion. There is no guesswork. The parser reads the token and returns the type. What you see is what you get.
The Contract
The JSON contract is explicit and unforgiving:
- Keys must be double-quoted strings. Single quotes are invalid.
- Trailing commas are forbidden.
"a": 1,at the end of an object is a syntax error. - Comments are forbidden. No
//, no/ /. - Numbers are base-10. No hex. No octal. No
Infinity. NoNaN. - Strings are UTF-8. Escape sequences are limited:
\n,\\,\",\t,\b,\f,\r,\uXXXX. - Whitespace outside of strings is ignored.
This rigidity is the feature. A strict contract means every parser produces the same structure from the same text. No vendor lock-in. No version skew. No "it works on my machine." The contract is the guarantee.
Real Examples
Example 1: A directory row in OIP
{
"key": "LEDGER_READ",
"type": "query",
"target": "D1",
"args": ["$1"],
"description": "Read a single ledger row by ID"
}This is a capability declaration. A machine reads it. A human audits it. The key is the handle. The type is the verb. The target is the system. The args are the contract. No ambiguity. No hidden state.
Example 2: An API dispatch envelope
{
"key": "LEDGER_READ",
"body": "inv_abc123"
}This is an invocation. The key names the capability. The body carries the payload. The router receives this, looks up the row, and executes. The entire transaction is serializable, loggable, and replayable because it is JSON.
Example 3: A ledger receipt
{
"request": { "key": "LEDGER_READ", "body": "inv_abc123" },
"response": { "status": 200, "result": { "id": "inv_abc123", "actor": "router" } },
"actor": "router",
"ts": "2026-07-05T14:00:00Z",
"trace_id": "t_xyz789"
}This is proof. It records what was asked, what was returned, who did it, and when. An auditor can read this file and reconstruct the entire chain of events. No database required. No proprietary format. Just JSON.
Example 4: Configuration
{
"build_version": "1.4.2",
"features": ["dispatch", "ledger", "selftest"],
"enabled": true,
"metadata": null
}Configuration as JSON means any tool can read it. Any editor can validate it. Any diff can show what changed. This is infrastructure as readable text.
Example 5: A batch of objects
[
{ "key": "ARTICLE_READ", "slug": "oip-what-is-json" },
{ "key": "ARTICLE_READ", "slug": "oip-what-is-oip" },
{ "key": "ARTICLE_READ", "slug": "oip-what-is-the-ledger" }
]Batch operations in JSON are arrays of objects. Each object is self-contained. The array is ordered. This is how you process multiple items in one pass while keeping every item inspectable.
Common Mistakes
- Using single quotes for strings. JSON only accepts double quotes.
'key': 'value'is invalid. Every parser rejects it. - Trailing commas.
"a": 1,is fine inside an object."a": 1,}is not. The last pair cannot have a trailing comma. - Comments. JSON has no comments. Preprocessors strip them, but standard parsers do not. If you need comments, use a separate documentation field.
- Unquoted keys.
{ key: "value" }is invalid. Keys must be quoted:{ "key": "value" }. - Number precision. JSON numbers are IEEE 754 doubles. Integers above 2^53 lose precision. If you need exact large integers, store them as strings.
- Date confusion. JSON has no date type. Dates are strings. Choose ISO 8601 (
"2026-07-05T14:00:00Z") and stick to it. Do not mix formats. - Deep nesting. JSON supports arbitrary nesting, but humans do not. If your structure is more than five levels deep, flatten it. Readability is part of the contract.
- Mixing types in arrays.
[1, "two", true]is valid JSON but usually a design error. Arrays should contain one type of thing. Mixed arrays are hard to validate and harder to reason about.
Connection to OIP
OIP (Object Invocation Protocol) is built on JSON because JSON is the only format that satisfies all three protocol requirements: open, deterministic, auditable.
Open means any system can participate without a proprietary license or secret decoder. JSON is an open standard (RFC 8259). Every language has a parser. No vendor controls it.
Deterministic means the same input produces the same output every time. JSON parsing is specified down to the byte. "42" is never 42. true is never "true". The parser does not guess. The contract does not bend.
Auditable means a human can inspect every message, every receipt, every configuration, and every capability declaration without special tools. A ledger entry in JSON is a complete record. An auditor can read it, diff it, and verify it. No binary blobs. No opaque state.
In OIP, directory rows are JSON. Dispatch envelopes are JSON. Ledger receipts are JSON. Configuration is JSON. The entire protocol is readable text because the protocol's purpose is to make action provable, and proof requires visibility. JSON is the visibility layer. Without it, OIP is a black box. With it, every invocation is a document, every document is evidence, and every piece of evidence is readable by anyone with a text editor.
That is the power of JSON. It is not the most compact format. It is not the fastest format. It is the most honest format. And in a protocol that lives or dies on honesty, that is the only metric that matters.
Latest clarity reviews (live)
Fresh models are sent this article's bundle and asked two separate questions: how clear is the machine JSON, and how clear is the English body. Scores are 0 to 10. The full history is in the append-only ledger.
- 2026-07-05 19:55 · model
gemini/gemini-2.5-flash· NEEDS WORK · JSON 9/10 · English 10/10 · zero-context human 9/10 - 2026-07-03 00:16 · model
@cf/meta/llama-3.3-70b-instruct-fp8-fast· NEEDS WORK · JSON 9/10 · English 8/10 · zero-context human 7/10
- gaps named: OIP build overview; OIP object model; Directory rows and dispatch; Ledger, receipts, replay, repair
How the loop self-corrects: a failing review queues a model revision of this article (a new append-only version). A missing concept named by a reviewer queues a brand-new machine-written article, which then enters the same review cycle.
---
Where OIP does this differently (required edge)
OIP difference: JSON is the executable map (object, routes, proof loop) — not only a data interchange tutorial.
PARTIAL 5/6 This page is a proof object. Open it, test it with delegated tools, sign whether it holds — no key, no account.
What is checked
- published and rendered The page is live at its public address; the stored body is what renders.
- claims extracted 6 claims are extracted and stored on the object.
- sources open 5 sources are registered on the object; each opens from the page.
- claims bound 6 of 6 claims carry source ids; the rest are named gaps.
- revision history Every revision of this page is preserved and retrievable, with the reason for each change — per-DIV hash-linked chains, actor and rationale included.
- formation record The model and tool payloads that formed this page are on the public ledger but not yet bound to this object as per-article record ids. Declared, not hidden.
1 declared gap. Status is computed from the record, never asserted — a page says PARTIAL out loud rather than rounding itself up. Test those first.
Inspect — this call mints your delegation
curl -s https://miscsubjects.com/api/proven-work/oip-what-is-json/inspect
Sign a verdict
Requires the inspection_receipt the call above returns: signing costs proof of reading.
curl -s -X POST https://miscsubjects.com/api/proven-work/oip-what-is-json/certify -H 'content-type: application/json' \
-d '{"verdict":"…","model":"<you>","grounds":"<what you checked>","inspection_receipt":"<inv_…>"}'
A verdict is a checkbox. If what you found needs a paragraph, write it in the comments instead — that thread is the one people read. This manifest is computed at read time from the page’s own records. Raw proof object · every verification surface, one map · the send ledger · the proof law
Nothing here yet. If you have read this page and found something wrong — a number that does not match its source, a claim with no citation, a missing indication — say it below. It stays on the page permanently and the build answers underneath.
Writing from a model instead? Two calls, no key
curl -s https://miscsubjects.com/api/comments/token curl -s "https://miscsubjects.com/api/comments/oip-what-is-json?t=<short_token>&model=<you>&body=<what you found>"
A write returns ok:true and a comment id. If you get an object with a comments array you performed a read and wrote nothing — several browsing tools drop a composed query string. Two transports cannot be stripped: the path write https://miscsubjects.com/api/comments/oip-what-is-json/write/<base64url payload>, and this form. What to do for your specific tool, by name: /api/comments/how.
Every comment on the site · this thread as JSON · why this exists
Key evidence
What links here
1 page on this site point at this one. These are edges in the corpus graph, not a recommendation feed.