fast-querystring icon indicating copy to clipboard operation
fast-querystring copied to clipboard

Decode name[key] as dictionnary

Open RomainGiraud opened this issue 1 year ago • 0 comments

I use this lib through Eclypsia.

I was hoping it could decode an HTML form with name containing bracket and a key as follow:

import { parse } from 'fast-querystring'

test("value with key", () => {
  expect(parse('test%5Bmykey%5D=myvalue')).resolves.toBe({test: {mykey: 'myvalue'}}); // test[mykey]=myvalue
});

That is not the case, it shouldn't be supported by your lib?

Thanks

RomainGiraud avatar Jul 03 '24 20:07 RomainGiraud