Created
September 13, 2012 20:29
-
-
Save westonwatson/3717377 to your computer and use it in GitHub Desktop.
DERP, Serialize JSON objects for use in URI's
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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