I need to send request to my Rails API with key like: ids: [null, 1, 2, null, 3]. Unfortunately Rails cuts all the nulls from this array so the params[:ids] returns [1, 2, 3]. I need those nulls in the array.
How can I prevent Rails from removing them? I can send empty string instead of null, but it's not very elegant.