title: PHP $_POST string to JSON array
body: <p>I'm trying to decode json string using following code</p>
  
  <pre><code>$jsonString = "[\"a@gmail.com\",\"b@gmail.com\",\"c@gmail.com\"]";
  $arrayOfEmails=json_decode($jsonString);
  </code></pre>
  
  <p>This code works fine. But When I <code>$_POST</code> this string via form &amp; then try to decode on other page, It shows NULL. </p>
  
  <p>I checked for string value after post on other page &amp; it returns as <code>"[\"a@gmail.com\",\"b@gmail.com\",\"c@gmail.com\"]";</code></p>
  
  <p>But when I try decode this <code>$_POST</code> string as follow,  It shows NULL.</p>
  
  <pre><code>if ($_POST) {
      $string = $_POST['my_string'];
  
      $arrayOfEmails=json_decode($string);
  }
  </code></pre>
  
  <p>What I'm doing wrong ?</p>