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
Hi there! I am using this package for stringifying data before sending requests to the backend. I recently have a case like below:
let body = { pets: ["has_dog", "has_cat"] }; config.body = qs.stringify(body, { arrayFormat: 'brackets' }); console.log("config body", config.body);
pets[]=has_dog&pets[]=has_cat
pets%5B%5D=has_dog&pets%5B%5D=has_cat
Does anyone facing same issue? How you can solve it so that brackets will not be escaped? Thanks.
The text was updated successfully, but these errors were encountered:
Try:
qs.stringify(body, { arrayFormat: 'brackets', encodeValuesOnly: true });
Sorry, something went wrong.
[
]
No branches or pull requests
Hi there! I am using this package for stringifying data before sending requests to the backend.
I recently have a case like below:
Expected Result
pets[]=has_dog&pets[]=has_cat
Current Result
pets%5B%5D=has_dog&pets%5B%5D=has_cat
Does anyone facing same issue? How you can solve it so that brackets will not be escaped? Thanks.
The text was updated successfully, but these errors were encountered: