getQueryParams
Get query parameters from a URL as a key-value object.
url(required): URL string
bash
echo '{"url": "https://example.com/search?q=hello&page=2"}' | utlx -e 'getQueryParams($input.url)'
# {"q": "hello", "page": "2"}utlx
{
params: getQueryParams($input.url),
searchTerm: getQueryParams($input.url).q
}