title: Problems When Grabbing Information in JSON File (PHP)
body: <p>So I am trying to just grab some data from a json file in php which should be simple but is not working</p>
  
  <pre><code>$url = 'http://www.vam.ac.uk/api/json/museumobject';
  $contents = array(file_get_contents($url));
  var_dump($contents);
  </code></pre>
  
  <p>this returns the contents of the file.</p>
  
  <p>Whenever I try to grab data it doesn't work.</p>
  
  <pre><code> var_dump($contents[0].records.[0].object);
  </code></pre>
  
  <p>this returns the whole file.</p>
  
  <p>Any suggestions to return just one piece of information in this json file:
  <a href="http://www.vam.ac.uk/api/json/museumobject" rel="nofollow">http://www.vam.ac.uk/api/json/museumobject</a></p>