Created
March 7, 2014 01:51
-
-
Save getify/9403543 to your computer and use it in GitHub Desktop.
JSON.pretty
This file contains 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
if (!JSON.pretty) { | |
JSON.pretty = function jsonpretty(o,f,indent) { | |
f = (f !== undefined) ? f : null; | |
indent = (indent !== undefined) ? indent : "\t"; | |
return JSON.stringify(o,f,indent); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment