I have a string like
def data = \"session=234567893egshdjchasd&userId=12345673456&timeOut=1800000\"
I want to convert it to a map>
If you use Grails, the best way I find is WebUtils the function fromQueryString.
https://grails.github.io/grails-doc/2.0.x/api/org/codehaus/groovy/grails/web/util/WebUtils.html