Skip to content

Instantly share code, notes, and snippets.

@sholsinger
Created February 15, 2011 22:10
Show Gist options
  • Save sholsinger/828372 to your computer and use it in GitHub Desktop.
Save sholsinger/828372 to your computer and use it in GitHub Desktop.
Apparently the standard is stringify() // Who decided that?!
if(JSON.hasOwnProperty('encode') && !JSON.hasOwnProperty('stringify')){
JSON.stringify = JSON.encode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment