{"ScriptPreparationCode":"window.string = \u0027hola=mundo\u0026soy=david\u0027\r\n\r\nwindow.parseQuery = (query) =\u003E {\r\n const searchParams = new URLSearchParams(query);\r\n const result = {};\r\n\r\n for (const [key, value] of searchParams) {\r\n if (key in result) {\r\n const current = result[key];\r\n if (Array.isArray(current)) {\r\n current.push(value);\r\n } else {\r\n result[key] = [current, value];\r\n }\r\n } else {\r\n result[key] = value;\r\n }\r\n }\r\n\r\n return result;\r\n};","TestCases":[{"Name":"query-string","Code":"qs.parse(string)","IsDeferred":false},{"Name":"URLSearchParams","Code":"parseQuery(string)","IsDeferred":false}]}