I currently have the following javascript array:
var stuffs = ['a', 'b'];
I pass the above to the server code using jQuery's load
:
var data = {
'stuffs': stuffs
};
$(".output").load("/my-server-code/", data, function() {
});
On the server side, if I print the content of request.POST
(I'm currently using Django), I get:
'stuffs[]': [u'a', u'b']
Notice the []
at the prefix of the variable name stuffs
. Is there a way to remove that []
before it reaches the server code?