Skip to content

Instantly share code, notes, and snippets.

@westonwatson
Created September 13, 2012 20:29
Show Gist options
  • Save westonwatson/3717377 to your computer and use it in GitHub Desktop.
Save westonwatson/3717377 to your computer and use it in GitHub Desktop.
DERP, Serialize JSON objects for use in URI's
var DERP = {
serialize : function(a1){t=[];for(x in a1)t.push(x+"="+encodeURI(a1[x]));return t.join("&");}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment