title: Drilling down into JSON with PHP
body: <p>This is a really simple task, that has me absolutely stumped! I'm pulling back some JSON via CURL and PHP, and attempting to access the data from the below structure:</p>
  
  <pre><code>object(stdClass)[1]
    public 'maxResults' =&gt; int 43
    public 'resultList' =&gt; 
      array (size=43)
        0 =&gt; 
          object(stdClass)[2]
            public '@class' =&gt; string '' (length=64)
            public 'id' =&gt; int
            public 'version' =&gt; int 0
            public 'dateCreated' =&gt; string '2014-02-11T18:37:55.835+0000' (length=28)
            public 'dateModified' =&gt; null
            public 'locationId' =&gt; int
            public 'departmentId' =&gt; int
            public 'ownerCompanyId' =&gt; int
            public 'active' =&gt; boolean true
            public 'userId' =&gt; int
            public 'userName' =&gt; string '' (length=24)
            public 'externalCode' =&gt; null
            public 'employeeDetails' =&gt; 
              object(stdClass)[3]
                ...
            public 'chargeBandAllocationsIds' =&gt; 
              array (size=7)
                ...
            public 'personalRateChargeBandId' =&gt; 
              object(stdClass)[13]
                ...
            public 'employeeGroupIds' =&gt; 
              array (size=0)
                ...
            public 'isResource' =&gt; boolean false
  </code></pre>
  
  <p>(I've removed some of the values, for privacy reasons)</p>
  
  <p>Now I'm trying to <code>var_dump</code> using <code>var_dump(json_decode($result, false));</code>, however when I try and get into the 'resultList' array using <code>var_dump(json_decode($result['resultList'], false));</code> I get an illegal string offset error.</p>