Skip to content

Instantly share code, notes, and snippets.



Last active Mar 8, 2020
What would you like to do?
JavaScript: pretty print an object as formatted plain text
console.log(JSON.stringify(obj, null, 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment