sapo/Ink.js — pull request #3 by diogoosorio (2013-07-11 13:29:11+00:00)
Title: Ink.Net.Ajax - trees and array object parameter support for the F'ing win!

So while using the module, I've figured that this didn't work:

```javascript
var my_params = {
items: ['item1', 'item2', 'item3']
},
request = new Ink.Net.Ajax('/my_endpoint', {parameters: my_params});
```

The parameters that were being sent on the request looked something like this:

```
items=item&items=item2&items=item3
```

After opening up the code, I've also found (as the test demonstrates) that the method that handles the parameters basically only supports a key -> val datastructure, where val is a primitive data type.

So three problems that I'd like to fix:

1. Add support for array objects parameters
1. May I haz recursion for nested parameters?
1. Why does the Ink.Net.JsonP module (and who knows where else) basically re-implements this logic? Shouldn't we DRY this out?

Once again, I'm asking for your thoughts regarding these matters. I have no problem to implement this myself, I just don't want to waste time developing code and then fall in a cycle of "ideological" discussions (been there, done that). :)