XML technologies / JSON for XML professionals / Introduction and history

From JavaScript to language-independent data syntax

JSON stands for JavaScript Object Notation. Its notation derives from object literals in JavaScript, or ECMAScript. That connection explains the name, not a requirement to use JavaScript. JSON describes data, not functions or programs to execute. The official introduction identifies ECMAScript, third edition, December 1999, as the language-level starting point. [Q01]

The historical development is instructive for XML users. JSON became attractive for exchanging structured values: a receiving program should be able to read names, lists, strings and numbers directly into suitable internal data structures. The aim was not to improve the model of a semantically marked-up book chapter. Different starting problems led to different strengths.

Instant

Development

Significance for XML users

December 1999

ECMAScript 3 describes the underlying language.

The notation originates in JavaScript; this is not the publication date of a JSON standard.

July 2006

Douglas Crockford publishes RFC 4627.

JSON receives a formal description and the media type application/json. The RFC is historical and has since been superseded.

October 2013

First edition of ECMA-404.

The pure data-interchange syntax is standardized separately.

December 2017

RFC 8259 and the second edition of ECMA-404.

The JSON rules used here are consolidated; syntax and interoperability must still be distinguished from domain semantics.

2017

XQuery 3.1 and XSLT 3.0 become W3C Recommendations.

The XML processing ecosystem gains standardized bridges to JSON processing.

2020

JSON-LD 1.1 becomes a W3C Recommendation.

A standardized JSON-based format for Linked Data is available.

February 2024

RFC 9535 standardizes JSONPath.

An IETF standard is available for JSON selection; the conformance of particular libraries must nevertheless be checked.

Sources for the timeline: [Q02], [Q03], [Q04], [Q05], [Q06], [Q07], [Q08]. The historical specifications provide context. Current parser rules are not determined by the behavior of old example programs. In particular, a historical example using eval() is not a recommendation for a present-day application.

Three layers that must not be confused

A distinction is crucial for the following article: syntax, content model and meaning are not the same thing. ECMA-404 explicitly defines syntax, not the domain semantics of the exchanged data. [Q03]

{
  "title": "Schematron",
  "author": "Manuel Montero Pineda"
}

This object deliberately shows just one of the three authors and is not a complete bibliographic record. It is a small, understandable data structure. However, it does not specify whether title is a book title, a form of address or the title of an event. The string alone also does not establish the author’s identity permanently. Two systems can parse this file without errors yet understand it differently.

The same problem is familiar from XML:

<record>
  <title>Schematron</title>
  <author>Manuel Montero Pineda</author>
</record>

A schema can constrain the shape. A documented vocabulary explains its use within the domain. Persistent identifiers and an appropriate semantic model then make it possible to combine statements across several data sources. JSON-LD is one possible basis for this, but that does not make every JSON document Linked Data.

The more important question for a publishing project is therefore not “Do we want XML or JSON?” but “Which information must be preserved at which point in the process, and with what guarantees?” An API record, an editorial master file and an RDF graph can describe the same publication while using different, equally legitimate models.

What XML users bring with them and what they need to learn

Thinking in terms of structures, repetition, validation and transformation remains valuable. So does the knowledge that a successful conversion does not by itself produce a sound information architecture. What is new is primarily JSON’s immediate proximity to maps, lists and primitive values, together with the need to model document-like properties explicitly.

A useful learning path therefore starts with simple metadata, moves on to mixed content and CMS content, and only then addresses semantics and more complex transformations. This is exactly how the article is organized. The aim is not the wholesale replacement of XML. It is the ability to read, design and validate JSON and fit it into existing publishing architectures.

back to top