title: JSON pivot table - able to access all values
body: <p>Is it possible to list all facilities from my JSON but still have be able to access use hotel information?  Currently it only works if I spit out the facilities only.</p>
  
  <p>JSON</p>
  
  <pre><code>{
    "id": "1",
    "hotel_title": "Name of Hotel",
    "hotel_description": "10",
    "facilities": [
      {
        "id": "1",
        "facility_name": "Foo",
        "facility_description": "Bar",
        "pivot": {
          "hotel_id": "1",
          "facility_id": "1"
        }
      }
    ]
  }
  </code></pre>
  
  <p>CALL TO  JSON</p>
  
  <pre><code>$.getJSON("{{ url('api/facilitieslist')}}", { option: $(this).val() }, 
                  function(data) {
                          $('#facilities').empty();
                          $.each(data, function(key, value) { 
                               $('#facilities').append('&lt;div&gt;&lt;input type="checkbox" value="' + value.id +'" name="facilities[]"&gt; ' + value.name +'&lt;/div&gt;');
                          });
  
                  });
  </code></pre>