2006-01-30| e1 |# Transforming JSON
JSON is a lightweight text format for data interchange. It is often better suited for structured data than XML.
A frequently requested task with JSON data is its transformation to other formats, especially to XML or HTML for further processing.
The most obvious way to achive this, is to use a programming language (ECMAscript, Ruby,…) and the DOM-API.
In XML we can transform documents by another XML document containing transformation rules (XSLT) and applying these rules using an XSLT-processor.
Adopting that concept I have been experimenting with a set of transformation rules (written in JSON).
As a result in analogy to XML/XSLT the combination JSON/JSONT can be used to transform JSON data into any other format by applying a specific set of rules.