title: Javascript / jQuery URL Query Params Parse
body: <p>I have a URL query that looks like this:</p>
  
  <p><code>view-mode=grid&amp;filters%5Bone%5D%3D1%26filters%5Btwo%5D%3D2</code></p>
  
  <p>Ultimately I want to be able to parse the parameters in both PHP and Javascripting (using jQuery). No issues parsing in PHP using $_GET. Trying to figure out how to do it using Javascript. The final object in Javascript should look like this:</p>
  
  <p><code>{
    "view-mode" : "grid",
    "filters" : {
      "one" : "1",
      "two" : "2"
    }
  }</code></p>
  
  <p>Any suggestions? I am using <a href="http://medialize.github.io/URI.js/docs.html" rel="nofollow">URI.js</a> for some building and parsing already.</p>
  
  <p>Thanks</p>