title: Parsing JSON Array Data
body: <p>I'm trying to get data out of some JSON DATA. I'm using the following lines to decode it right now</p>
  
  <p><code>$json_array = (array)(json_decode($response));</code></p>
  
  <p>When I print my JSON Decoded array, I have the following data below:
  I would like to get the details from the details section, where there is multiple sets of from/to_date's, and up/down numbers. Nothing I seem to do works though to get me to that data. I can print out the data from other areas like usage, but, I can't get into the details. </p>
  
  <pre><code>Array ( 
      [resp_code] =&gt; SUCCESS 
      [caller_ref] =&gt; 2017092002282130006180 
      [server_ref] =&gt; 2017092002282169760291 
      [data] =&gt; stdClass Object ( 
          [type] =&gt; monthly
          [group_id] =&gt; 19 
          [device_id] =&gt; 32
          [sn] =&gt; sn1234
          [usages] =&gt; Array ( 
              [0] =&gt; stdClass Object (
                  [from_date] =&gt; 2017-09-01T00:00:00 
                  [to_date] =&gt; 2017-09-30T23:59:59 
                  [up] =&gt; 22370
                  [down] =&gt; 119217
                  [ts] =&gt; 2017-09-01T00:00:00 
              )
          ) 
          [details] =&gt; stdClass Object (
              [3] =&gt; Array ( 
                  [0] =&gt; stdClass Object (
                      [from_date] =&gt; 2017-09-01T00:00:00 
                      [to_date] =&gt; 2017-09-30T23:59:59 
                      [up] =&gt; 5522 
                      [down] =&gt; 40301 
                      [ts] =&gt; 2017-09-01T00:00:00 
                  ) 
              ) 
              [2] =&gt; Array ( 
                  [0] =&gt; stdClass Object ( 
                      [from_date] =&gt; 2017-09-01T00:00:00 
                      [to_date] =&gt; 2017-09-30T23:59:59
                      [up] =&gt; 6905 
                      [down] =&gt; 32029 
                      [ts] =&gt; 2017-09-01T00:00:00
                  ) 
              )
          )
       )
  )
  </code></pre>