title: Make a JSON from an XML file by XPATH
body: <p>I'm currently working on a program to import <code>XML</code> file and exporting some data in <code>JSON</code> format by using <code>XPATH</code>. However I have problem with <code>XPATH</code> special characters. My most confusing issues are <strong>{</strong> and <strong>}</strong> as constants not operators.
  here is my code sample to grab the <code>JSON</code> out of the <code>XML</code> file.</p>
  
  <pre><code>{[}
  [FOREACH({trackdata/disc/side/track})]
  {{}
  "track": {index/.},
  "title": "{title/.}"
  {}},
  [ENDFOREACH]
  {]}
  </code></pre>
  
  <p>And I need the Output of something like:</p>
  
  <pre><code>[
    {
      "track": 1,
      "title": "title 1"
    },
    {
      "track": 2,
      "title": "title 2"
    }
  ]
  </code></pre>
  
  <p>So, Is this possible at all?</p>