expressjs/multer — pull request #33 by CezarLuiz0 (2014-06-12 03:09:27+00:00)
Title: Parsing the body

This pull request will return a best structure of the body.

The problem is, if I have a html code like this:

```
input(name="team[0][name]", value="Barcelona")
input(name="team[1][country]", value="Spain")

input(name="team[1][name]", value="Manchester United")
input(name="team[1][country]", value="England")
```

My body will be returned like this:

```
{
"team[0][name]": "Barcelona",
"team[0][country]": "Spain",
"team[1][name]": "Manchester United",
"team[1][country]": "England"
}
```

Now the body will be parsed with querystring (qs) module of NodeJS and will be returned like this:
```
{
"team": [
{
"name": "Barcelona",
"country": "Spain"
},
{
"name": "Manchester United",
"country": "England"
}
]
}
```

This way is much better, no?

How I'm beginner in NodeJS, I don't know if I did right, but, I think that the idea is valid.

Thanks! (sorry my english)