title: Php - json_decode returns null
body: <p>I am trying to decode json string that looks like the one below with json_decode php function:</p>
  
  <pre><code>"{id:"1",fields:[{id:"1",value:"asdasd"},{id: "2",value:"asdasd"},{id:"3",value:"asdasd"}]}"
  </code></pre>
  
  <p>I have tried various options from this <a href="https://stackoverflow.com/questions/689185/json-decode-returns-null-after-webservice-call">question</a>. Like:</p>
  
  <pre><code>$foo = utf8_encode($json_string);
  $data = json_decode($foo, true);
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>json_decode(str_replace ('\"','"', $json_string), true);
  </code></pre>
  
  <p>Even with:</p>
  
  <pre><code>json_decode( preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $json_string), true );
  </code></pre>
  
  <p>But, everything I try I always get <code>null</code>.
  Why is that?</p>