title: Transformation from XML to JSON
body: <p>Is there a standard way to transform an input XML document with structure (scheme) of my choice to an output JSON object with structure (scheme) of my choice?</p>
  
  <p>If it were transformation from input XML to output XML, I would use XSLT.</p>
  
  <p>I can image the following three approaches:</p>
  
  <ol>
  <li><p>Direct transformation from XML to JSON, i.e. a way to describe transformation XML -> JSON just like XSLT describes transformation XML -> XML.</p></li>
  <li><p>I am aware of JSONML. It is a lossless JSON representation of arbitrary XML document. However, the resulting JSON object does not have the structure of my choice. If there were some standard way to describe transformation JSON -> JSON, I would chain XML -> JSONML and JSONML -> JSON.</p></li>
  <li><p>If there were the opposite to JSONML (let's call it "XMLSON", i.e. a lossless XML notation of arbitrary JSON object), I would chain XML -> XMLSON (via XSLT) and XMLSON -> JSON.</p></li>
  </ol>
  
  <p>All the three options have some "if there were". I wonder if there really is some technology to achieve the goal.</p>
  
  <p>Thanks.</p>