Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

urlsearchparams to object

JSON.parse('{"' + decodeURI("abc=foo&def=%5Basf%5D&xyz=5".replace(/&/g, "","").replace(/=/g,"":"")) + '"}')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #urlsearchparams #object
ADD COMMENT
Topic
Name
4+6 =