title: Issue while reading a JSON script array output using Foreach loop in ADF
body: <p>I have an array output from ACTIVITY script like this</p>
  <pre><code>Input json array
    {
    &quot;result&quot;:[
    {
    &quot;Val&quot;:[
    {&quot;pqr&quot;:1,&quot;srt&quot;:2},
    {&quot;pqr&quot;:1,&quot;srt&quot;:2}
    ]
    }
    ]
    }
  </code></pre>
  <p>How can I iterate  this nested json object using a Foreach loop. I am getting error while I use @activity(script).output .result. Val to  get the array values.
  Error: The length cannot be evaluated because property value doesn't exist</p>