-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
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
Any way to bypass querystring.stringify with empty Object ? #12234
Comments
https://github.com/nodejs/help, https://gitter.im/nodejs/node and #node.js channel on IRC are better places to ask such questions. FWIW, you probably want to pass a JSON string as the value of I believe the behavior of |
I agree with you about the documentation. As least , why not provide a list of value that will not be seriliazed ? I don't think there are so many cases undefined
null
''
""
{}
[] |
Yeah it's more like a doc issue. Though I think this should be a list of values that will be serialized instead of values that will not be serialized? (logic is in Lines 219 to 268 in cfc8422
Labeld as good first contribution. Feel free to send in a doc PR. |
Can I take this up? |
@shubheksha Go for it! Let us know if you need any help. :) |
@shubheksha thanks. |
Closed by #12313 |
I am working currently on a project that requires to send custom GET HTTP requests.
I am using the default querystring builder (https://nodejs.org/api/querystring.html)
The problem is for Object (probably also for empty array) such as
is serialiazed as :
The expected result :
or its URI encoded version :
So , how can I ever hope to do that ? Any way to bypass this default behalvior ?
Here is my full code if you want :
The text was updated successfully, but these errors were encountered: