Not sure if people consider this an issues, however, arrays are apparently padded with nulls for missing values,
> JSON.stringify(url('?','?t[0]=x&t[1]=y'));
"{"t":["x","y"]}"
> JSON.stringify(url('?','?t[0]=x&t[2]=y'));
"{"t":["x",null,"y"]}"
Maybe the better option would be to return objects for sparse arrays, like so,
> JSON.stringify(url('?','?t[0]=x&t[1]=y'));
"{"t":["x","y"]}"
> JSON.stringify(url('?','?t[0]=x&t[2]=y'));
"{"0":"x","2":"y"}"
Not sure if people consider this an issues, however, arrays are apparently padded with nulls for missing values,
Maybe the better option would be to return objects for sparse arrays, like so,