Array styles
tags[]=a&tags[]=b, tags=a&tags=b, tags[0]=a or tags=a,b to match your backend.
Build URL parameters from a JSON object, encoded and ready to append to a URL.
Convert JSON to a URL query string with encoding. Choose how arrays are written (tags[]=, repeated keys, indexes or commas); nested objects use brackets.
{"q":"running shoes","page":2,"size":[9,10],"filter":{"color":"blue"}}q=running%20shoes&page=2&size[]=9&size[]=10&filter[color]=blueTip: Encoding makes spaces %20; some servers expect + instead, which is equivalent in query strings.
tags[]=a&tags[]=b, tags=a&tags=b, tags[0]=a or tags=a,b to match your backend.
filter: {color: "blue"} becomes filter[color]=blue.
Values are percent-encoded so spaces, & and = are safe; turn it off for readable output.
null becomes an empty value (key=).
PHP and Rails expect tags[]=; Express with qs reads all styles; many REST APIs use repeated keys or commas. Check your API documentation.
Brackets are left readable (filter[color]); they are accepted by browsers and servers.
No, so you can append it with ? or &.
Yes, the query string is built in your browser.