title: Using the Parse Template transformer with an array in the data
body: <p>I'm a newbie to Mulesoft, and I'm looking to transform a Json object into an XML object via the Parse Template transformer. Straight forward enough, however, what is the appropriate approach when the Json object has an array with an undetermined number of elements? </p>
  
  <p>For example, if I have a JSON object that looks like </p>
  
  <blockquote>
    <p>{ "name" : "Methusela",
     "hobbies: [
       "name": "guitar",
       "name": "cooking",
       "name": "someting",
    ...
    ]}</p>
  </blockquote>
  
  <p>where the number of hobbies is unknown at runtime<br>
  and my xml template looks like:</p>
  
  <pre><code>&lt;Person&gt;
  &lt;Name&gt;#[payload.name]&lt;/Name&gt;
  &lt;Hobbies&gt;
      &lt;!- What should this bit look like --&gt;
  &lt;/Hobbies&gt;
  </code></pre>
  
  <p></p>
  
  <p>So - my question is how should I approach the conversion of the open ended JSON array to XML?</p>
  
  <p>Note that we are currently exploring the community edition and therefore don't have access to the data mapping functionality available through the enterprise edition.</p>
  
  <p>Thanks </p>