title: How to get the POST values from serializeArray in PHP?
body: <p>I am trying this new method I've seen <code>serializeArray()</code>.</p>
  
  <pre><code>//with ajax
  var data = $("#form :input").serializeArray();
  post_var = {'action': 'process', 'data': data };
  $.ajax({.....etc
  </code></pre>
  
  <p>So I get these key value pairs, but how do I access them with PHP?</p>
  
  <p>I thought I needed to do this, but it won't work:</p>
  
  <pre><code>// in PHP script
  $data = json_decode($_POST['data'], true);
  
  var_dump($data);// will return NULL?
  </code></pre>
  
  <p>Thanks, Richard</p>