title: How to convert input json array to csv in mule
body: <p><strong>this is my Json input</strong> </p>
  
  <pre><code>[
  {
      "id":"001",
      "name":"john",
      "gender": "M"
  },
  {
      "id":"002",
      "name":"Mule",
      "gender": "F"
  },
  {
      "id":"003",
      "name":"Sara",
      "gender": "F"
  },
  {
      "id":"004",
      "name":"Mati",
      "gender": "F"
  }
  ]
  </code></pre>
  
  <p>I need to generate this output</p>
  
  <pre><code>gender:F**|**Mati*004**|**Sara*003**|**
  gender:M**|**john*001**|**Mule*002**|**
  </code></pre>