jQuery, posting arrays and square brackets

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') Read post »