XML technologies / Other markup languages / JSON for XML professionals
This introduction is expressly intended for people from the XML world: developers, information architects, technical writers, publishing staff and consultants familiar with XML structures, document grammars and transformation processes. Anyone already working with JATS, DocBook, DITA, TEI or custom XML vocabularies need not start from scratch when learning JSON. They do, however, need to reconsider some familiar assumptions.
An XML document is not simply a JSON object with angle brackets. Conversely, JSON is not merely XML with the end tags omitted. The differences concern the data model, the treatment of text, the significance of order, and how information is processed and agreed between systems. This article therefore explains JSON through the same tasks found in XML-based publishing workflows, rather than in isolation.
A small demonstration catalog from the data2type environment serves as the running example. It focuses on the actual book "Schematron: Effiziente Business Rules für XML-Dokumente" by Manuel Montero Pineda, Marko Hedler and Nico Kutscherauer, published in 2011 by dpunkt.verlag. data2type GmbH is the example company here, not the publisher of this book. [Q43]
Prices, availability, internal identifiers, CMS responses and short editorial texts, by contrast, are freely chosen test data. The two additional catalog titles explicitly include (Demo) and are not actual publications. The example.org/data2type/ addresses describe an example architecture, not production data2type endpoints. This keeps genuine bibliographic information distinguishable from technical demonstration values.
The original explanations are in German. Field names, program comments and invented example texts are in English. The actual German book title and subtitle are preserved in their original form; accordingly, the book has the language declaration de. All original files are included in the companion package. data/example-provenance.json documents the provenance and the deliberately invented values.
Further topics covered in this article:
Mixed content and rich text: the crucial publishing comparison
JSON and XML: strengths, limitations and fair comparison criteria
Validating JSON: schemas, business rules and comparison with XSD and Schematron
|