Skip to content

Commit

Permalink
Add querystring test and todo file
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 13, 2011
1 parent ed56b00 commit 366ec4b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TODO
@@ -0,0 +1,6 @@
-- TODO --

Support nested tables

require('qs').parse('user[name][first]=tj&user[email]=tj');
// => { user: { name: { first: 'tj' }, email: 'tj' } }
12 changes: 12 additions & 0 deletions qs-test.lua
@@ -0,0 +1,12 @@
local qs = require ("querystring")

obj = {}
obj.foo="bar&lol"
obj.bar = true
obj.cow=33
obj.arr={1,3,4}
obj.arr.food="carrot"

p(qs.stringify(obj))

p(qs.unescape("A%41%41"))

0 comments on commit 366ec4b

Please sign in to comment.