I am trying to do the opposite of this question, namely, convert a JavaScript object into the query at the end of a url. This is for a potentially huge, and completely randomized string in terms of keys/values. For example,
activity = {myKey:"randomString"}
'<img src="images/image.gif?' + activity + '">'
Would give me back:
<img src='images/image.gif?{myKey:"randomString"}'>