I am using Jquery 1.9.1. Having problem in sending ajax data which has array data in one of the key. This is my code:
var obj = {"param1": 1, "param2": 2, "param3": [1, 2]};
$.ajax({
url : url,
type: "POST",
data: obj,
success: function(){}
});
But when I checked headers in network panel of developer tool. It is displayed as this:
"param1": 1,
"param2": 2,
**"param3[]"**: [1]
**"param3[]"**: [2]
Why it is adding []
to the param3 key? Anyone has any idea?
I have used $.ajax
before, this the first time it is sending like this.