4 chars · 1 line
16 chars · 3 lines
4 chars · 1 line
16 chars · 3 lines
Query builder JSON error
Build Query starts by parsing the input as JSON. Missing quotes, braces, commas, or other JSON syntax errors stop conversion before any URL parameters are created. This tool is free to use. No account or payment is required.
Last updated
The converter does not guess JavaScript object syntax or repair malformed JSON. It uses JSON.parse and only begins URLSearchParams construction after parsing succeeds.
Once syntax is valid, separate checks enforce a top-level object and primitive values.
The invalid input cannot be parsed; the corrected object can be built as q=vetatool&page=2.
{bad{"q":"vetatool","page":2}Common questions
No. The input must be valid JSON.
No. The top level must also be an object and values must be supported primitives or arrays of primitives.
Use the linked JSON tools for detailed repair or validation, then return to Build Query.
Debugging a specific Query String issue? Browse Query String troubleshooting.