title: How to json_decode invalid json?
body: <p>example.php</p>
  <pre><code>{&quot;status&quot;: &quot;ok&quot;} {&quot;status&quot;: &quot;error&quot;}
  </code></pre>
  <p>result:</p>
  <pre><code>ok , error
  </code></pre>
  <p>My website is showing a blank page(I'm using this code),can you help me to fix it?</p>
  <pre><code>&lt;?php
  $userinfo = 'example.php';
  $fgc = file_get_contents($userinfo);
  $json2 = json_decode($fgc, true);
  $media = $json2['status'];
  
  $mediaId = $media;
  
  echo $mediaId;
  ?&gt;
  </code></pre>