title: Get data from json array - Undefined index error
body: <p>Below is json response and I have problems getting <code>shipping_address</code> data.</p>
  
  <pre><code>{
      "orders": [{
          "created_at": "2015-01-04T02:20:03+01:00",
          "financial_status": "paid",
          "id": 384536708,
          "total_price": "45.00",
          "line_items": [{
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 0,
              "price": "45.00",
              "quantity": 1,
              "requires_shipping": true,
              "taxable": true,
              "title": "test",
              "vendor": "test",
              "name": "test",
              "properties": [],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": []
          }],
          "shipping_address": {
              "address1": "Street 20",
              "address2": "",
              "city": "City",
              "company": "",
              "country": "USA",
              "first_name": "Name",
              "last_name": "Surname",
              "latitude": 45.000000,
              "longitude": 10.000000,
              "phone": "",
              "province": "",
              "zip": "12345",
              "name": "Name Surname",
              "country_code": "US",
              "province_code": null
          }
      }, [...]
  </code></pre>
  
  <p>I can get orders with this code:</p>
  
  <pre><code>$content = file_get_contents($url);
  $json = json_decode($content, true);
  foreach($json['orders'] as $order){
      echo "&lt;td&gt;".$order['id']."&lt;/td&gt;";
  }
  </code></pre>
  
  <p>But when I try to get <em>shipping_address</em> data like this:</p>
  
  <pre><code>foreach ($json['shipping_address'] as $sa) {
      echo "&lt;td&gt;".$sa['name']."&lt;/td&gt;";
  }
  </code></pre>
  
  <p>Then i get: <em>Notice: Undefined index: shipping_address</em> and <em>Warning: Invalid argument supplied for foreach()</em></p>
  
  <p>Am I targeting array wrong?</p>