title: json decode returns empty string
body: <p>here is my origin code:</p>
  
  <pre><code>$returnArray=array(
      'loginUrl'=&gt;$url."/?page_id=2732",
      'clientNumber'=&gt;$clientNumber,
      'clientName'=&gt;$_SESSION['userName']
  );
  echo json_encode($returnArray);
  </code></pre>
  
  <p>and here is my receiving end code:</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt($ch,CURLOPT_URL, $url);
  curl_setopt($ch,CURLOPT_POST, count($fields));
  curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
  
  $result = trim(curl_exec($ch));
  
  curl_close($ch);
  
  $result = json_decode($result,true);
  </code></pre>
  
  <p>And finally here is the <code>$result</code> var_dump</p>
  
  <pre><code>string(194) "
  {"loginUrl":"http:\/\/www.xxxxxxxxxxxx.co.il\/chtsystem\/?page_id=2732","clientNumber":"11111","clientName":"\u05d0\u05d1\u05d9 \u05d4\u05de\u05d3\u05d1\u05d9\u05e8 - www.yyy-yyyyyyy.co.il"}"
  </code></pre>
  
  <p><code>$result</code> comes out <code>null</code> from the decode, when printing json errors I can see <code>"JSON_ERROR_SYNTAX"</code> is on</p>
  
  <p>what is wrong here?</p>