Created
August 17, 2014 19:01
-
-
Save jakelodwick/5a62eddbe67dca0a45e2 to your computer and use it in GitHub Desktop.
Pretty-print JSON
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
# pretty-print JSON | |
# http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript | |
ppjson = (obj) -> | |
console.log JSON.stringify obj, undefined, 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment