title: Best way to create an empty object in JSON with PHP?
body: <p>To create an empty JSON object I do usually use:</p>
  
  <pre><code>json_encode((object) null);
  </code></pre>
  
  <p>casting null to an object works, but is there any other preferable way and/or any problem with this solution?</p>