1let parameters = 'www.goole.com?code=1232';
2// const value = parameters.get('emailVf');
3var search = parameters.split('?')[1];
4parameters = JSON.parse('{"' + decodeURI(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}')
5alert(JSON.stringify(parameters))
6
7output : {code:1232}: