Hello,
I have an action on my server side:
public void Action(Container container)
{
}
where container is:
public class Container
{
public string[] Arr;
}
From the client side, I'm invoking this action in the way below:
$.post("Controller/Action", { Arr: "abc" }, null, "json");
After this, the Arr in container contains one element "abc".
But, while invoking action the way below:
$.post("Controller/Action", { Arr: ["abc", "def"] }, null, "json");
the json array is not deserializing on the server side. The Arr in container is NULL.
How to make this simple thing work ?
Regards