How to add objects to the extra variables?

How to add objects to the extra variables?

jawosisjawosis Posts: 7Questions: 0Answers: 0
edited May 2010 in General
Can anyone help me and explain how I add objects (arrays, etc.) to extra variables being sent on the ajax request?

Somehow like the "myarray" variable below:

$.getJSON(url, {"myarray[]": [1,2,3,4,5], function(data) {alert(data);}}


Thanks for your help!
This discussion has been closed.