http://domain.com/action?params[]=1¶ms[]=2¶ms[]=3
returns:
query: { 'params[]': [ '1', '2', '3' ] }
params[] as name instead of params?
After PHP it’s kinda surprise.
jQuery serialization is adding [] on parameters btw.
Are you guys wrote a helper for this or I’m just doing it wrong?
This module does parsing as required:
https://github.com/visionmedia/node-querystring
There is another one for complex arrays if this doesn’t work:
https://github.com/jazzychad/querystring.node.js
Both found here:
https://github.com/joyent/node/wiki/modules