title: json to php array cdnjs
body: <p>I am trying to convert cdnjs api JSON result to php array from this <a href="http://api.cdnjs.com/libraries" rel="nofollow">link</a>. Here is my code:</p>
  
  <pre><code>&lt;pre&gt;
  &lt;?php
      $cdnLinks = file_get_contents('http://api.cdnjs.com/libraries');
      $cdnLinks = json_encode($cdnLinks);
      $j = json_decode($cdnLinks);
      print_r($j);
  ?&gt;
  &lt;/pre&gt;
  </code></pre>
  
  <p>What am I missing? Thanks</p>