jQuery.queryString
Parses querystrings. For example, the following querystring:
"name=John&address=1%202%20West%20St&phone=(123)%20123-1234"
can be transformed into a JavaScript object:
This is the inverse of jQuery.param()
Usage
$.deparam(queryString)
Parse a querystring to a JavaScript object:
$.currentQueryString()
Get the querystring from the current document.location as a parsed object:
$.appendQueryString(url, parsedQueryString)
There’s also a method to append a parsed querystring to a URL:
Dependencies
This library uses jquery.delimitedString (part of skinny.js), which abstracts encoding/decoding of key-value pairs.