title: Why does json_decode return null for empty array?
body: <p>Why would this echo "NULL"? In my would it would be decoded to an empty array.</p>
  
  <p>Is it something obvious I'm missing?</p>
  
  <pre><code>&lt;?php
  
  $json = json_encode(array());
  $json_decoded = json_decode($json, true);
  // same with json_decode($json);
  
  if ($json_decoded == null){
      echo "NULL";
  } else
  {
      echo "NOT NULL";
  }
  
  ?&gt;
  </code></pre>