Skip to content

Instantly share code, notes, and snippets.

@sholsinger
Created February 15, 2011 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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