Notice: Trying to get property of non-object in C:\xampp\htdocs\ihelploginapi\index.php on line 5
<p>This code was working 2 days before, but now i am getting an error:</p>

<blockquote>
  <p>Trying to get property of non-object in C:\xampp\htdocs\ihelploginapi\index.php on line 4.</p>
</blockquote>

<p>Somebody please help me out.</p>

<pre><code>&lt;?php

    $json = file_get_contents('php://input');
    $obj = json_decode($json,TRUE);
    $tag = $obj-&gt;{'tag'};
?&gt;
</code></pre>