We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting Stringify for Array of Object.
Sample Parameter:
const params = { filters: [{ key1: 'Value1' }, { key2: 'Value2' }] }
Using:
qs.stringify(params, { skipNull: true, arrayFormat: 'bracket' })
Sample expected result: /?filter[key1]=Value1&filter[key2]=Value2
/?filter[key1]=Value1&filter[key2]=Value2
See in CodeSandbox: https://codesandbox.io/s/little-dew-q6jjvk?file=/src/index.js
The text was updated successfully, but these errors were encountered:
I don't plan to support objects in this package. There are other projects like qs that does.
qs
https://github.com/sindresorhus/query-string#nesting
Sorry, something went wrong.
No branches or pull requests
Supporting Stringify for Array of Object.
Sample Parameter:
Using:
Sample expected result:
/?filter[key1]=Value1&filter[key2]=Value2
See in CodeSandbox: https://codesandbox.io/s/little-dew-q6jjvk?file=/src/index.js
The text was updated successfully, but these errors were encountered: