title: PHP problem decoding GET parameter with double quotes
body: <p>I'm passing a 'data' parameter to a php page using AJAX. The parameter is a JSON string like:</p>
  
  <pre><code>{"type":"value"}
  </code></pre>
  
  <p>I encode with encodeURIComponent JS function getting:</p>
  
  <pre><code>%7B%22type%22%3A%22value%22%7D
  </code></pre>
  
  <p>If I write by hand:</p>
  
  <pre><code>http://some_url/index.php?data=%7B%22type%22%3A%22value%22%7D
  </code></pre>
  
  <p>my "index.php" simply gets the parameters and "prints in the screen". The problem is I'm getting this which isn't a valid JSON to decode:</p>
  
  <pre><code>{\"type\":\"value\"}
  </code></pre>
  
  <p>Any help,
  thanks in advance</p>