This is old, but new to me. I guess it shows that I haven’t been doing a lot of front-end work lately.
I am trying to post an array to a server, using jQuery:
$('#fbshare').click(function () {<br></br> $.post('url',<br></br> { array: [ 'only one item' ] },<br></br> function() {<br></br> alert('done!');<br></br> }, 'json');<br></br> });``` It turns out that %5b%5d is URL encoding for []. So jQuery “helpfully” making the arrays PHP-style. I don’t need, or want that, but according to [this post on the jQuery forum](http://forum.
Read more →