Framed HTML and Quoted Keys: The Garage Experiment That Built JSON

An editorial illustration showing a glowing amber geometric network of interlocking frames floating over a crumbling dark grey iron lattice.

In April 2001, inside Chip Morningstar's Bay-Area garage, Douglas Crockford and Morningstar gathered around a computer screen to test a minimalist snippet of browser code. As co-founders of State Software, they needed a way to pass data dynamically into a web application after the initial page load, without forcing a full screen refresh. What emerged from that garage experiment was a small HTML document containing a raw JavaScript object literal sent through a hidden browser frame—the very first operational payload of what would eventually become JavaScript Object Notation, or JSON.

Photograph: Douglas Crockford
Photograph: Douglas Crockford. Photo: Robert Claypool. Wikimedia Commons · CC0. Resized and converted to WebP; no retouching.

The Hidden Frame Hack in a Suburban Garage

In 2001, building responsive web applications meant confronting deep incompatibilities between major browsers. Internet Explorer 5 had introduced an early, proprietary version of XMLHttpRequest via ActiveX as early as 1999, but Netscape 4 offered no equivalent feature. To achieve cross-browser data delivery without relying on proprietary ActiveX objects, Crockford and Morningstar turned to an unconventional workaround known as the hidden frame technique.

Their system pointed a hidden HTML frame at a target server URL. The server returned a lightweight HTML payload containing embedded JavaScript. When loaded, this script executed code such as parent.session.receive(), passing a plain JavaScript object literal back to the primary application. By explicitly declaring the document domain property, they successfully bypassed cross-domain frame security restrictions across both platforms.

Reserved Words and the Quoted Key Rule

Because the frame trick passed native JavaScript syntax directly, the payload did not require a custom parsing engine; the browser's built-in interpreter handled the data automatically. However, early testing ran into an unexpected parser failure when an object key used the word "do". ECMAScript maintained dozens of reserved keywords, and using "do" as an unquoted object key caused the browser parser to crash.

Rather than requiring developers to memorize dozens of forbidden keywords, Crockford established a strict rule: all keys in the new format had to be wrapped in double quotes so the interpreter would treat them as literal strings. When the pair tried to name their format JSML, they discovered the acronym was already taken by Java Speech Markup Language, leading them to adopt JavaScript Object Notation. In 2002, Crockford registered JSON.org to publish the formal grammar and reference parser implementations.

The AJAX Boom and the Wheel Reinvention Feud

JSON gained widespread adoption following the arrival of AJAX, a term coined by web developer Jesse James Garrett in 2005. Although the acronym stood for Asynchronous JavaScript and XML, Garrett noted in a follow-up Q&A that JSON was an entirely viable substitute for XML in structuring application data.

As software engineers adopted JSON for its simplicity, proponents of existing standards pushed back. In 2006, RSS pioneer Dave Winer publicly criticized JSON in a blog post, questioning why anyone felt the need to reinvent XML. Crockford left a memorable response in the comment section, writing that the good thing about reinventing the wheel is that you can get a round one.

Dictionaries, Arrays, and Universal Standardization

The technical shift from XML to JSON was rooted in data structure design. XML had evolved from SGML and early text-processing markup tools like Scribe, which were engineered to mark up documents containing inline formatting and mixed text content. JSON discarded document markup entirely, constraining its model to key-value dictionaries and ordered arrays—the core data structures common to virtually all programming languages.

By eliminating verbose tags and document complexity, JSON allowed web services to send lighter payloads that mapped directly into programming data structures. In 2013, Twitter shut down XML support in favor of JSON-only APIs, and by 2014, the format was formally codified by both ECMA and RFC standards. What began as a workaround to bridge mismatched browser engines in a garage became the standard protocol for web data exchange.

Cover: AI-generated editorial illustration; not a documentary photograph.

Source: 0b10

0b10

The Rise and Rise of JSON

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *