title: json_decode returning blank
body: <p>I am working on <code>facebook app</code>. I have stored some values in database in json format.</p>
  
  <p>When I am fetching the value on the target page and trying to display the value as follow : </p>
  
  <pre><code>$sql = mysql_query("select * from `beforepublish` where `tabid` = '$page_id'") or die(mysql_error());
  $sql = mysql_fetch_assoc($sql);
  
  $contest_id = $sql['contestid'];
  $temp_id = $sql["tempid"];
  $value = $sql["values"];
  $returnValue = json_decode($value);
  echo "&lt;pre&gt;";
  print_r($returnValue);
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>Here the value of </p>
  
  <p><code>$value = {"image":"upload_1182341221.jpg","conttxt":"Get a chance to win Samsung Galaxy Tab "}</code></p>
  
  <p>and I am getting <code>$returnValue</code> as blank.</p>
  
  <p>but When I try :</p>
  
  <pre><code>$returnValue = json_decode('{"image":"upload_1182341221.jpg","conttxt":"Get a chance to win Samsung Galaxy Tab "}');
  echo "&lt;pre&gt;";
  print_r($returnValue);
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>then $returnValue is returning : </p>
  
  <pre><code>stdClass Object
  (
      [image] =&gt; upload_1182341221.jpg
      [conttxt] =&gt; Get a chance to win Samsung Galaxy Tab 
  )
  </code></pre>
  
  <p>So guys, please help me, Why I am getting a blank value in the previous case ?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>vardump($value) is returning :</p>
  
  <pre><code>string '{"image":"upload_1182341221.jpg","conttxt":"Get a chance to win Samsung Galaxy Tab
      "}' (length=86)
  </code></pre>