var search = location.search.substring(1); JSON.parse('{"' + decodeURI(search).replace(/"/g, '"').replace(/&/g, '","').replace(/=/g,'":"') + '"}')