title: Display JSON data in php
body: <p>From a SDK my json data appears like :</p>
  
  <pre><code>$count_categories_json = "{\"api\":
  {\"version\":\"1.0\",\"cal_url\":\"http:\/\/www.example.com\",\"encoding\":\"ISO-8859-1\",\"generated\":\"2014-01-20T17:23:21+01:00\",\"contents\":\"categories_event_count\"}
  ,\"0\":{\"id\":\"47\",\"name\":\"Expositions\",\"parent_id\":\"0\",\"event_count\":\"679\",\"rank\":1}
  ,\"1\":{\"id\":\"94\",\"name\":\"Gratuit\",\"parent_id\":\"56\",\"event_count\":\"598\",\"rank\":2}
  …}
  </code></pre>
  
  <p>with code below it displays</p>
  
  <blockquote>
    <p>events - </p>
    
    <p>679 events - Expositions </p>
    
    <p>598 events - Gratuit</p>
  </blockquote>
  
  <pre><code>$array = json_decode($count_categories_json,true);
  
      foreach ($array as $jsons) {
          echo '&lt;li&gt;'.$jsonsc3['event_count'].' events - '.$jsonsc3['name'].'&lt;/li&gt;';
      }
  </code></pre>
  
  <p>First lign is of course non desired and comes from first element of json ("api":{\"version\":\"1.0\",\ ...)</p>
  
  <p>Question is : how to don't dispay it ?</p>