title: how to count length of the JSON array element
body: <p>I'm trying to count the length of the JSON array element. I know to count the length of array using <code>json.array.length</code>. That is need to find that how many items in every index.</p>
  <p>If my array is:</p>
  <pre><code>{
    &quot;shareInfo&quot;: [{
        &quot;id&quot;: &quot;1&quot;,
        &quot;a&quot;: &quot;sss&quot;,
        &quot;b&quot;: &quot;sss&quot;,
        &quot;question&quot;: &quot;whi?&quot;
      },
      {
        &quot;id&quot;: &quot;2&quot;,
        &quot;a&quot;: &quot;sss&quot;,
        &quot;b&quot;: &quot;sss&quot;,
        &quot;question&quot;: &quot;whi?&quot;
      },
      {
        &quot;id&quot;: &quot;3&quot;,
        &quot;a&quot;: &quot;sss&quot;,
        &quot;b&quot;: &quot;sss&quot;,
        &quot;question&quot;: &quot;whi?&quot;
      },
      {
        &quot;id&quot;: &quot;4&quot;,
        &quot;a&quot;: &quot;sss&quot;,
        &quot;b&quot;: &quot;sss&quot;,
        &quot;question&quot;: &quot;whi?&quot;
      }
    ]
  }
  </code></pre>
  <p>Then I need to find the length of <code>{&quot;id&quot;:&quot;1&quot;,&quot;a&quot;:&quot;sss&quot;,&quot;b&quot;:&quot;sss&quot;,&quot;question&quot;:&quot;whi?&quot;}</code>. In this there have four items. I tried this with <code>data.shareInfo[i].length</code>. But it produces error.</p>
  <p>Please anyone tell me how to find the length.... Thanks....</p>