Skip to content

Instantly share code, notes, and snippets.

@FrankGrimm
Created October 23, 2010 15:34
Show Gist options
  • Save FrankGrimm/642327 to your computer and use it in GitHub Desktop.
Save FrankGrimm/642327 to your computer and use it in GitHub Desktop.
var qs = require('querystring');
var query = "foo[name]=bar&foo[bar]=foobar";
var res = qs.parse(query);
console.log(res.foo.foo);
console.log(res['foo']['bar']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment