title: mule getting data from json payload
body: <p>My payload is</p>
  
  <pre><code>&lt;json:json-to-object-transformer returnClass="java.lang.Object" doc:name="JSON to Object"/&gt;
  &lt;logger message="#[payload]" level="INFO" doc:name="Logger"/&gt;`
  </code></pre>
  
  <p>which prints ( this is the json array input given)</p>
  
  <p>[{"Name":"My name","Address":"add1","Location":"NY"}]</p>
  
  <p>Now, I need to get data from the payload: </p>
  
  <blockquote>
    <p><code>&lt;logger message="#[payload.Name]" level="INFO" doc:name="Logger"/&gt;</code></p>
  </blockquote>
  
  <p>it prints null. How do I get data from the payload using MEL? Is there any simpler way of getting in Groovy or xpath?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Passed single json data as:</p>
  
  <pre><code>{"Name":"My name","Address":"add1","Location":"NY"}
  </code></pre>
  
  <p>logger:</p>
  
  <pre><code>  &lt;logger message="#[payload.Name]" level="INFO" doc:name="Logger"/&gt;
  </code></pre>
  
  <p>it prints null value.</p>