querystring-parser
querystring-parser copied to clipboard
Incorrect parsing for arrays
Hi guys,
I am parsing a querystring that includes an array value. However this library is interpreting it as a hash with a key of ''.
# intended to be parsed as follows (note this is a Ruby hash)
"received_on"=>"2012-09-07",
"invoice_uids"=>["inv_9hchn3xc84mgm"],
"invoice_id"=>nil
Here is the raw querystring:
payload[transaction][received_on]=2012-09-07&payload[transaction][invoice_uids][]=inv_9hchn3xc84mgm&payload[transaction][invoice_id]=
And here is the output from parsing using this library:
'received_on': '2012-09-07',
'invoice_uids': {'': 'inv_9hchn3xc84mgm'},
'invoice_id': ''
same here, did you figure it out?