title: jQuery ajax request with indexed array as key string
body: <p>I submit an ajax request with following data:</p>
  
  <pre><code>        $.ajax({
              type: 'POST',
              url: BASE_URL + '/api/get/filter/',
              cache: false,
              data: {
                  'search': {
                      'foo[bar]': 'foo'
                  },
                  'foo[bar]': 'foo'
              }
          })
  </code></pre>
  
  <p>So far so good, the data are send to the server, but when I return the $_POST var, I get following result:</p>
  
  <pre><code>$_POST: 
  foo: 
      bar: "foo"
  search: 
      foo[bar: "foo"
  </code></pre>
  
  <p>There ist something wrong with "search: foo[bar", shouldn't this be an array too?</p>
  
  <p>The idea is to disable the submit of a GET Form, changing the URL by Form parameters via pushState without reloading the webpage and finally submit the data via Ajax. This works perfectly, but it does not work, as soon as I send this data inside another array key like "search" in the given example.</p>
  
  <p>MORE SIMPLE QUESTION: 
  - I have the following URL (with unknown get parameters): <a href="http://www.test.com/?foo[]=bar&amp;foo[]=test&amp;foo[bar][]=foo" rel="nofollow">http://www.test.com/?foo[]=bar&amp;foo[]=test&amp;foo[bar][]=foo</a>
  How can I get all GET parameters with jQuery and send them with Ajax?</p>