fast-querystring
fast-querystring copied to clipboard
Decode name[key] as dictionnary
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