-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
Does Not Parse Boolean/Number in array #420
Comments
As they should, since query strings in the browser (like the entire URL) is always and only a string. The method is named "stringify" - do you expect something different? |
I'm sorry but `Qs.parse` usually parses Boolean strings to Boleans, and
Number strings to Numbers, just FYI
…On Fri, Aug 27, 2021, 12:22 PM Jordan Harband ***@***.***> wrote:
As they should, since query strings in the browser (like the entire URL)
is always and only a string.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#420 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOS7IR44ZYYQKLGUHAT5PLLT663TRANCNFSM5C5MSKSQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Separately, qs.parse('true') // { true: '' }
qs.parse('a=true') // { a: 'true' } etc. |
No tests here https://github.com/ljharb/qs/blob/bd9e3754d2871592baf42ca9fa988c2148a469a5/test/parse.js for false/true value. |
BTW #91 |
@dmitry that's because Regarding #91, |
Consider this code
true, false, 0, 1
all become stringsThe text was updated successfully, but these errors were encountered: