28 chars · 1 line
59 chars · 7 lines
28 chars · 1 line
59 chars · 7 lines
Repeated query parameter behavior
APIs often repeat one key to represent multiple selected values. VetaTool preserves those occurrences in order and emits a JSON array instead of discarding earlier values. This tool is free to use. No account or payment is required.
Last updated
A query such as tag=json&tag=tools contains two separate values for the same key. The parser counts both parameters and retains their original order.
When building from JSON, an array of primitives produces the same repeated-key shape in the generated query string.
Two tag values become one JSON array.
?tag=json&tag=tools&sort=asc{
"tag": [
"json",
"tools"
],
"sort": "asc"
}Common questions
No. VetaTool collects repeated keys into arrays.
Yes. Repeated values are appended in the order URLSearchParams exposes them.
Yes. Use an array of primitive JSON values for that key.
Debugging a specific Query String issue? Browse Query String troubleshooting.