pass array of numbers from ajax to controller

I know this is a popular topic and I’ve tried all of the solutions I could find already out there to no avail. I’ve used all the solutions included for this questions: Pass a List from javascript to controller. I’ve simplified my test to ridiculously simple. I get into the controller but my controller input param is {int[0]}. I confirmed my array data looks good in the JavaScript and ajax call.

Can anyone please tell me what I am missing?

JavaScript Code

var selectedIds = [];
// selectedIds = [565, 573, 571]

    type: "POST",
    traditional: true,
    dataType: "json",
    data: { "ids": JSON.stringify(selectedIds) },
    //data: { "ids": selectedIds},
    //data: { ids: selectedIds},
    url: "api/services/getbuildingsbyid",
    success: function (result) {
        return result;

Controller Code

public bool GetBuildingsById(int[] ids)
    var lookAtIds = ids;     // {int[0]}
    return true;

Source: stackoverflow-javascript