nathggns / uri.js

URI Parser (and soon to be URI encoder) in Javascript.
MIT License
2 stars 0 forks source link

nested keys and key arrays #6

Open a-x- opened 6 years ago

a-x- commented 6 years ago

current

  1. URI.query('?a[]=1&a[]=2'){ 'a[]': "2" }
  2. URI.query('?a[b][]=1&a[b][]=2'){ 'a[b][]': "2" }

expected

  1. { a: ['1', '2'] }
  2. { a: { b: ['1', '2'] } }
nathggns commented 6 years ago

Hi @a-x-

Thanks for reporting this. I would like to get this fixed. Unfortunately, I do not actively contribute to this project anymore. I will accept a pull request if you submit one though.

Hope you're well, Nate.