I've got an array of strings in JS. All the members are actually numbers.
My controller has an int[] parameter.
I send it from jquery:
$.ajax({url: someUrl, data: {ids : JSON.stringify(id_array) }, ...)
and I receive it using
public ActionResult MyAction(int[] ids) { ...
The parameter doesn't get filled, I've checked, the Request.Form["ids"] contains "[\"25\",\"26\"]", the string represention of the JSON array.
Is there any way to do this automatically without a lot of int parsing?