Possible Duplicate:
Javascript / Jquery: $.param( ) inverse function
Hi,
I'm trying to do the inverse of the jquery param function, i.e. I want to convert a parameter string (e.g. "login=1&init=1") to JSON (so that it can be used with jquery). Is there an easy way to do this?