title: jQuery get data from multidimensional array
body: <p>I am fetching the data from mysql table in an array which is in multi dimensional array. So the data is like this</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [id] =&gt; 2
              [client_id] =&gt; 2
              [first_name] =&gt; test1
              [last_name] =&gt; test2
          )
  
      [1] =&gt; stdClass Object
          (
              [id] =&gt; 3
              [client_id] =&gt; 2
              [first_name] =&gt; test3
              [last_name] =&gt; test4
          )
  
  )
  </code></pre>
  
  <p>As I need the data in json format So I made like this
  json_encode( $users );</p>
  
  <p>It gave me result like this</p>
  
  <pre><code>[{"id":"2","client_id":"2","first_name":"test1","last_name":"test2"},
  {"id":"3","client_id":"2","first_name":"test3","last_name":"test4"}]
  </code></pre>
  
  <p>As I wanted to get the data in object I did like this</p>
  
  <pre><code>data = $.parseJSON(data);
  </code></pre>
  
  <p>which gave me data in two objects. Now I want to get data for first_name . So can someone tell me how to do this?</p>