title: How to Transform from xml to json in Azure Logic apps using Liquid
body: <p>I am using the Transform XML to JSON.
  This is my request body in XML</p>
  
  <pre><code>&lt;Root&gt;
  &lt;test&gt;
      &lt;column1&gt;value1&lt;/column1&gt;
      &lt;column2&gt;value2&lt;/column2&gt;
  &lt;/test&gt;
  &lt;test&gt;
      &lt;column1&gt;value1&lt;/column1&gt;
      &lt;column2&gt;value2&lt;/column2&gt;
  &lt;/test&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>and this is my liquid map</p>
  
  <pre><code>{
      "test": [
          {% for data in Root.test %}
          {
              "column1": "{{data.column1}}",
              "column2": "{{data.column2}}",
          }
          {% endfor %}
      ]
  }
  </code></pre>
  
  <p>while running the logic app i am getting parsing error:</p>
  
  <pre><code>{
    "Code": "IncorrectLiquidTransformOutputType",
    "Message": "An error occurred while converting the transformed value to JSON. The transformed value is not a valid JSON. 'After parsing a value an unexpected character was encountered: {. Path 'test[0]'"
  }
  </code></pre>
  
  <p>But while I run the same code in the liquid sandbox is working fine. may I know? what is the issue here with logic apps.</p>