Decode a URL-encoded query string into a query object. A query string is everything after the
? in a URL. Certain special characters, like space,
/, etc., need to be encoded because they have special meaning in the URL itself. For more details see this Wikipedia article.
For example, in this URL:
https://www.example.com/searchcustomers?name=John%20Doe®ion=North%20America the query string is the part starting with "name", and this function would convert it to this object:
"name": "John Doe",
"region": "North America"
This function is the inverse of Encode Query.
- query (text): the query string
- output (object): the query object