title: Extracting array from JSON in mule esb
body: <p>I'm using Mule 3.4 CE and I have a JSON data coming through HTTP in the following format:</p>
  
  <pre><code>{
     "People" : [
      {
         "Details" : 
         {
           "Name" : "John Smith",
           "Email" : "abc@mail.com"
         }
      },
      {
         "Details" : 
         {
           "Name" : "Tim Smith",
           "Email" : "def@mail.com"
         }
      },
      {
         "Details" : 
         {
           "Name" : "Ken Smith",
           "Email" : "ghi@mail.com"
         }
      },
  }
  </code></pre>
  
  <p>I need to extract the emails and lookup the Salesforce contact with these emails and at the same time I want to retain the JSON payload. So my question is how do I extract the emails through MEL? (for e.g. something like "People/Details/*/Email" - I know this is not a valid, but I'm looking for the right syntax.</p>
  
  <p><strong>Edit</strong>: I want to extract the emails in one shot rather than indexing (for e.g. People/Details[0].Email, possibly using MEL.</p>