31 chars · 1 line
47 chars · 3 lines
31 chars · 1 line
47 chars · 3 lines
Query primitive serialization
Build Query stringifies boolean primitives. true becomes the text true and false becomes the text false; the builder does not silently convert them to 1/0 or presence-only flags. This tool is free to use. No account or payment is required.
Last updated
The builder applies String() to supported primitive values before URLSearchParams serialization.
When the generated query is parsed again, those values return as strings. Boolean interpretation belongs to application logic.
Both booleans are emitted explicitly.
{"debug":true,"archived":false}debug=true&archived=falseCommon questions
No. false is emitted as the text false.
No. It becomes the text true.
No. Generic query parsing returns strings.
Debugging a specific Query String issue? Browse Query String troubleshooting.